Module:Random: Difference between revisions

From MassiveCraft Wiki
Jump to navigation Jump to search
(Undo revision 6925 by Ryciera (talk))
No edit summary
Line 3: Line 3:
function x.tips()
function x.tips()
math.randomseed(os.time())
math.randomseed(os.time())
local l = math.random(15)
math.random() math.random() math.random() math.random() math.random()
local l = math.random(15)
local l = math.random(15)
local l = math.random(15)
local l = math.random(15)
local l = math.random(15)
return l
return l

Revision as of 20:37, 29 August 2015

Documentation for this module may be created at Module:Random/doc

local x = {}
		
function x.tips()
math.randomseed(os.time())
	math.random() math.random() math.random() math.random() math.random()
	local l = math.random(15)
	return l
end

return x