Difference between revisions of "Rnd"

From MiniScript Wiki
Jump to navigation Jump to search
(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 !!...")
 
Line 1: Line 1:
<c>rnd</c> Generates a pseudorandom number between 0 and 1 (including 0 but not including 1).
+
<c>rnd</c> generates a pseudorandom number between 0 and 1 (including 0 but not including 1).
  
 
=== Arguments ===
 
=== Arguments ===

Revision as of 16:12, 18 March 2020

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.