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

Module:Random: Difference between revisions

From MassiveCraft Wiki
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