Module:Random: Difference between revisions

From MassiveCraft Wiki
Jump to navigation Jump to search
(Undo revision 6925 by Ryciera (talk))
No edit summary
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
local x = {}
local x = {}
math.randomseed(os.time() * os.clock())
function x.tips()
function x.tips()
math.randomseed(os.time())
--math.random() math.random() math.random() math.random() math.random()
local l = math.random(15)
 
local l = math.random(15)
--for i = 1, 1000 do
local l = math.random(15)
--j = math.random(i, 15)
local l = math.random(15)
 
local l = math.random(15)
--return j
return l
--end
return math.random(10)
end
end


return x
return x

Latest revision as of 20:55, 29 August 2015

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

local x = {}
math.randomseed(os.time() * os.clock())
	
function x.tips()
	--math.random() math.random() math.random() math.random() math.random()

	--for i = 1, 1000 do
	--j = math.random(i, 15)

	--return j
	--end
	return math.random(10)
end

return x