Rand

From FreeSpace Wiki
Revision as of 14:54, 26 July 2007 by Supernova (talk | contribs) (New page: rand Rand (Arithmetic operator) Gets a random number. This number will not change on successive calls to this sexp. Returns a number. Takes 2 or 3 numeric arguments... 1: L...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
rand 
 Rand (Arithmetic operator) 
 Gets a random number. This number will not change on successive calls to this sexp. 
 
 Returns a number. Takes 2 or 3 numeric arguments... 
 1: Low range of random number. 
 2: High range of random number. 
 3: (optional) A seed to use when generating numbers. (Setting this to 0 is the same as having no seed at all)