Module:Random: Difference between revisions

Content deleted Content added
add a function that gets the same random number on every page.
oops - stupid mistake in the comments, should be divided by, not modulus
Line 67:
-- To fix this, replace the line beginning with "local seed" with the following code:
--
-- local seed = math.floor(os.time() %/ 60)
--
-- This makes the seed change once a minute. (The "60" is the number of seconds between one seed and the next.)