Module:Sandbox/isaacl/Probability explained

local me =

-- quick and dirty implementation for test purposes

local fRandomSeedSet = false;

local function setRandomSeed if not fRandomSeedSet then math.randomseed(os.time+os.clock*2^16+mw.site.stats.edits*2^16) fRandomSeedSet = true; endend

--Scales up Math.random by F, so returns a random value in the range [0, F). ]

function me.randomFloat(F) setRandomSeed return F*math.randomend -- function me.randomFloat

--