Difference between revisions of "Template:RNG/doc"
Jump to navigation
Jump to search
(Documentation) |
m (→Additional information) |
||
Line 4: | Line 4: | ||
==Usage== | ==Usage== | ||
Type <code><nowiki>{{RNG}}</nowiki></code> on the page to assume a seed of 0 and a limit of 100. | Type <code><nowiki>{{RNG}}</nowiki></code> on the page to assume a seed of 0 and a limit of 100. | ||
− | <pre> | + | <pre style="word-wrap:break-word"> |
+ | NOTE: Setting a limit value to something greater than 1 000 000 WILL have an effect on the ra-ndomness of the result. Use two {{RNG}} templates instead. | ||
{{RNG | {{RNG | ||
− | |seed=(number) | + | |seed=(number) -->Makes RNGs with different seeds unique to each other. |
− | |limit=(number) | + | |limit=(number) -->Restricts the RNG to produce only numbers from 1 to {{{limit}}}. |
}} | }} | ||
</pre> | </pre> |
Revision as of 10:23, 14 December 2016
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 ra-ndomness 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}}}. }}