Template:Random
Revision as of 20:39, 2 December 2017 by Skilgannon (talk | contribs) (Created page with "<!-- Pseudo-Random Number Generator that uses the formula: n(x+1) = (n(x) * A + C) modulo M; -- with a = 1103515245, c = 12345, m = 2^31 -- The seed is set by time, so di...")
Time: 21
Seed: 21
0.79115666914731
Utilizzo del template
This template generates pseudo-random numbers. The generated number changes every time the page is refreshed by:
http://page.url?action=purge
it is possible to call the template in 3 different ways:
- Without argument: in this case a value between 0 and 1 will be returned
{{Random}}</ pre> * '''With a (numeric)''' argument: a value between 0 and that argument will be returned <Pre>{{Random|6}}</ pre> * '''With two arguments (numeric)''': a value between the first and the second will be returned. <Pre>{{Random|3|7}}