Template:Rand: Difference between revisions

From PZwiki
(Created page with "{{#expr: abs {{#expr: ({{LOCALTIMESTAMP}} + {{NUMBEROFEDITS:R}}) mod {{{1|100}}}}}+1}}<noinclude>Cached number (out of 100): {{rand|100}}</noinclude>")
 
m (add category)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{#expr: abs {{#expr: ({{LOCALTIMESTAMP}} + {{NUMBEROFEDITS:R}}) mod {{{1|100}}}}}+1}}<noinclude>Cached number (out of 100): {{rand|100}}</noinclude>
<includeonly>{{#expr: abs {{#expr: ({{LOCALTIMESTAMP}} + {{NUMBEROFEDITS:R}}) mod {{{1|100}}}}}+1}}</includeonly>
<noinclude>Randomly selected number (0 - 100): {{rand|100}}<br><br>Usage: <nowiki>{{rand|max}}</nowiki>[[Category:Metatemplates]]</noinclude>

Latest revision as of 05:37, 3 March 2024

Randomly selected number (0 - 100): 100

Usage: {{rand|max}}