Template:Rand

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Documentation icon Documentationviewedithistorypurge

This documentation is transcluded from Template:Rand/doc.

This template generates a en:pseudo-random integer between 0 and count-1.

Usage

{{Rand |1= |2= |3= }}

Example: {{Rand|1000|1|19}}

Template parameters

Parameter Description Default Status
1 count. By default, this template generates values between 0 and 99. Must be non-zero. 100 optional
2 can be set to any other integer value (used to generate distinct values on the same page). {{#time:z}} optional
3 should be a en:prime number above 17 (used to generate distinct values on the same page). 67 optional

Additional information

The template is intended to be used in the following namespaces: no namespace specified

The template is intended to be used by the following user groups: all users

Relies on:
{{mod}}

Localization

This template is not intended to be localized.