Rnd

From MiniScript Wiki
Revision as of 16:04, 17 March 2020 by 71.226.33.30 (talk) (Created page with "<c>rnd</c> Generates a pseudorandom number between 0 and 1 (including 0 but not including 1). === Arguments === {| class="wikitable" |- ! Parameter Name !! Default Value !!...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.