More actions
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
function x.tips() | function x.tips() | ||
local theSeed = os.time() | |||
for _=1,10 do | |||
theSeed = theSeed + 1 | |||
print( "Seeding with "..theSeed ) | |||
math.randomseed( theSeed ) | |||
for i=1,5 do | |||
return( math.random( 1, 100 ) ) | |||
end | |||
end | |||
--math.randomseed(os.time()) | |||
-- local l = math.random(15) | |||
-- return l | |||
end | end | ||
return x | return x |
Revision as of 20:31, 29 August 2015
Documentation for this module may be created at Module:Random/doc