Difference between revisions of "Template:Rand"
Jump to navigation
Jump to search
(new template to generate an allmsot random number.) |
m (edit.) |
||
| Line 2: | Line 2: | ||
This template generates a random number. | This template generates a random number. | ||
| − | The current output is </noinclude> {{ #expr: {{ #expr: {{ #expr: ( {{CURRENTTIMESTAMP}} mod 8 ) + {{CURRENTYEAR}} + {{CURRENTWEEK}} + {{CURRENTHOUR}} + {{CURRENTMONTH}} + {{CURRENTDOW}} + {{CURRENTDAY}} }} + {{NUMBEROFARTICLES:R}} + {{NUMBEROFUSERS:R}} + {{NUMBEROFFILES:R}} + {{NUMBEROFPAGES:R}} }} mod {{{1|4}}} }} | + | The current output is </noinclude>{{ #expr: {{ #expr: {{ #expr: ( {{CURRENTTIMESTAMP}} mod 8 ) + {{CURRENTYEAR}} + {{CURRENTWEEK}} + {{CURRENTHOUR}} + {{CURRENTMONTH}} + {{CURRENTDOW}} + {{CURRENTDAY}} }} + {{NUMBEROFARTICLES:R}} + {{NUMBEROFUSERS:R}} + {{NUMBEROFFILES:R}} + {{NUMBEROFPAGES:R}} }} mod {{{1|4}}} }}<noinclude> |
| − | |||
| − | <noinclude> | ||
{{Parms| | {{Parms| | ||
{{Parm|1|Set the number you wish to have the rand between. (eg. "4" would make the template output numbers between 0 and 4.) | Yes. | Default value is 4. }} | {{Parm|1|Set the number you wish to have the rand between. (eg. "4" would make the template output numbers between 0 and 4.) | Yes. | Default value is 4. }} | ||
}} | }} | ||
</noinclude> | </noinclude> | ||
Revision as of 21:36, December 23, 2007
This template generates a random number.
The current output is 2
| Template Parameters (See using templates). | |||
|---|---|---|---|
| Name | Purpose | Required? | Comment |
| 1 | Set the number you wish to have the rand between. (eg. "4" would make the template output numbers between 0 and 4.) | Yes. | Default value is 4. |