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
No edit summary
No edit summary
Line 1: Line 1:
local x = {}
local x = 0


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


return x
return x

Revision as of 04:46, 29 August 2015

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

local x = 0

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

return x