Module:Random: Revision history

From The Blockheads Wiki

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

6 August 2024

  • curprev 17:0517:05, 6 August 2024JarlPenguin talk contribs 605 bytes +605 Created page with "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 function p.main( frame ) local m = tonumber( frame.a..."