Module:Random: Difference between revisions

From 2d4chan
Jump to navigation Jump to search
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"
 
m 1 revision imported
 
(No difference)

Latest revision as of 01:05, 14 February 2025

{{#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