FANDOM


local p = {}
local seeded
local randomseed = math.randomseed
local random = math.random
 
function p.random( m, n )
	if not seeded then
		p.seed()
	end
 
	return random( n and m or m and 1 or 0, n or m or 1 )
end
 
function p.seed( seed )
	randomseed( seed or ( os.time() + os.clock() * 1000000000 ) )
 
	-- First few values of seed is not guaranteed to be random on some platforms
	random()
	random()
 
	seeded = true
end
 
return p

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.