Difference between revisions of "Template:RNG"
Jump to navigation
Jump to search
(added pseydo) |
|||
Line 13: | Line 13: | ||
</div> | </div> | ||
− | {{ | + | {{documentation}} |
Revision as of 07:24, 14 December 2016
This is an Impressive page. It is giving a +3 positive thought to all colonists viewing it. Please consider leaving the page as is, or decorating this page with sculptures. The impressiveness of this page at the moment is 95. |
Generic pseudo-random number: 22
Generated numbers:
Seed 1 limit 30:
6
Seed 2 limit 30:
24
Seed 1:
96
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: 32
The above documentation is transcluded from Template:RNG/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |