Template:RNG

From RimWorld Wiki
Revision as of 07:25, 12 December 2016 by Spdskatr (talk | contribs) (Making types.)
Jump to navigation Jump to search

Generic random number: 0

Generated numbers:

Type 1 seed 1: 75
Type 2 seed 1: 75
Type 3 seed 1: 75

Description

This template is used to generate random numbers in a relatively short time.

Usage

Type {{RNG}} on the page to assume a seed of 0 and a limit of 100.

NOTE: Setting a limit value to something greater than 1 000 000 WILL have an effect on the randomness of the result. Use two {{RNG}} templates instead.
{{RNG
|seed=(number)            -->Makes RNGs with different seeds unique to each other.
|limit=(number)           -->Restricts the RNG to produce only numbers from 1 to limit.
}}

Example:

{{RNG
|seed=1234
|limit=5000}}

results in: 2950