Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Random: Difference between revisions

Template page
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{Mod|(({{#time:U}}+({{{2|{{#time:z}}}}}))*({{{3|67}}})+({{NUMBEROFARTICLES:R}} mod ({{{3|67}}})))|{{{1|100}}}}}</includeonly><noinclude>
<includeonly>{{Mod|(({{#timel:U}}+({{{2|{{#timel:z}}}}}))*({{{3|67}}})+({{NUMBEROFARTICLES:R}} mod ({{{3|67}}})))|{{{1|100}}}}}</includeonly><noinclude>
<!-- Please put all metadata in documentation page [[Template:Rand/doc]] -->
<!-- Please put all metadata in documentation page [[Template:Rand/doc]] -->
Randomly generates a number from 0-X. By default X is one. The amount of values that can be generated can be chosen by typing <nowiki>{{Random|256}}</nowiki>. This makes it generate any value from 0-255. Notice 256 is not included in this generation. The value represents the number RANGE and includes 0. So 0-255 has 256 possible values.
Randomly generates a number from 0-X. By default X is one. The amount of values that can be generated can be chosen by typing <nowiki>{{Random|256}}</nowiki>. This makes it generate any value from 0-255. Notice 256 is not included in this generation. The value represents the number RANGE and includes 0. So 0-255 has 256 possible values.

Revision as of 18:31, 14 June 2023

Randomly generates a number from 0-X. By default X is one. The amount of values that can be generated can be chosen by typing {{Random|256}}. This makes it generate any value from 0-255. Notice 256 is not included in this generation. The value represents the number RANGE and includes 0. So 0-255 has 256 possible values. 0-255: 136
0-3 but the number is replaced with words using switch statement: Zero
0-2 but the number is replaced with images using switch statement:

Cookies help us deliver our services. By using our services, you agree to our use of cookies.