Difference between revisions of "Rand-multiple"

From FreeSpace Wiki
Jump to: navigation, search
(New page: rand-multiple Rand-multiple (Arithmetic operator) Gets a random number. This number can and will change between successive calls to this sexp. Returns a number. Takes 2 or 3 n...)
 
m (category added)
Line 1: Line 1:
 
  rand-multiple  
 
  rand-multiple  
  Rand-multiple (Arithmetic operator)  
+
    Rand-multiple (Arithmetic operator)  
  Gets a random number. This number can and will change between successive calls to this sexp.  
+
    Gets a random number. This number can and will change between successive calls to this sexp.  
 
+
 
  Returns a number. Takes 2 or 3 numeric arguments...  
+
    Returns a number. Takes 2 or 3 numeric arguments...  
  1: Low range of random number.  
+
    1: Low range of random number.  
  2: High 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)
+
    3: (optional) A seed to use when generating numbers. (Setting this to 0 is the same as having no seed at all)
 +
[[Category:SCP SEXPs]]

Revision as of 09:48, 31 July 2007

rand-multiple 
    Rand-multiple (Arithmetic operator) 
    Gets a random number. This number can and will change between 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)