Template:Random
Documentation for Random
Generates a random number from 1 to max
. If max is not provided, an error is thrown. Custom values (i.e. not just numbers) can be provided by setting the numbered parameters, e.g.:
{{Random|max=10|a|b|c|d|e|f|g|h|i|j}}
will generate e (when the random seed is 5).
Specific parameters can also be overwritten by using the following syntax:
{{Random|max=10|5=e|10=i}}
This will return the random number, unless the number is 5 or 10, in which case it will return e or i, respectively.
If two different numbers are needed on the same page, set the offset
parameter.