Template:Pseudorand: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#expr: {{#time: U}} mod {{{1}}}}}</includeonly><noinclude>This template accepts one parameter X, and will return a different number every time it is used, between 0 and X-1. However, the number isn't random, it is based on the current time. | <includeonly>{{#expr: {{#time: U}} mod {{{1}}}}}</includeonly><noinclude>This template accepts one parameter X, and will return a different number every time it is used, between 0 and X-1. However, the number isn't random, it is based on the current time. | ||
For example, '''<nowiki>{{pseudorand|13}}</nowiki>''' returns {{#expr: {{#time: U}} mod 13}}.[[Category:Templates]]</noinclude> | For example, '''<nowiki>{{pseudorand|13}}</nowiki>''' returns {{#expr: {{#time: U}} mod 13}}.[[Category:Utility Templates|{{PAGENAME}}]]</noinclude> |
Latest revision as of 08:58, 22 February 2010
This template accepts one parameter X, and will return a different number every time it is used, between 0 and X-1. However, the number isn't random, it is based on the current time.
For example, {{pseudorand|13}} returns 0.