Module:Random

From 2d4chan
Revision as of 01:05, 14 February 2025 by 2d4fag (talk | contribs) (1 revision imported)
(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