Module:Random

From 2d4chan
Revision as of 13:43, 8 May 2023 by PathfinderWiki>Virenerus (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")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
{{#invoke:Random|number}}

will output a random number. This is meant as a technical solution for some HTML problems.


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