Rnd

From MiniScript Wiki
Revision as of 16:12, 18 March 2020 by JoeStrout (talk | contribs)
Jump to navigation Jump to search

rnd generates a pseudorandom number between 0 and 1 (including 0 but not including 1).

Arguments

Parameter Name Default Value Meaning
seed number, optional if given, reset the sequence with this value.

Usage Notes

If given a seed, then the generator is reset with that seed value, allowing you to create repeatable sequences of random numbers. If you never specify a seed, then it is initialized automatically, generating a unique sequence on each run.