Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Random

From ProleWiki, the proletarian encyclopedia
Revision as of 22:45, 5 October 2022 by Forte (talk | contribs) (Created function for random numbers)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
local p = {}

function p.random(frame)
	local parent = frame:getParent()
	
	local a = parent.args[1]
	local b = parent.args[2] or 100
	
	return math.random(a,b)
end