Jump to navigation Jump to search

Module:Random: Difference between revisions

(Created page with "local p = {} function p.number( frame ) math.randomseed(mw.site.stats.edits + mw.site.stats.pages + os.time() + math.floor(os.clock() * 1000000000)) return math.random() end return p")
 
(No difference)

Latest revision as of 12:54, 12 May 2023

{{#invoke:Random|number}}
will output a random number. This is meant as a technical solution for some HTML problems.

Script error: Lua error: Internal error: The interpreter exited with status 127.

local p = {}

function p.number( frame )
	math.randomseed(mw.site.stats.edits + mw.site.stats.pages + os.time() + math.floor(os.clock() * 1000000000))
    return math.random()
end

return p