Difference between revisions of "Random"

From Wiki
Jump to: navigation, search
(Example)
Line 8: Line 8:
 
set %a #random % 100
 
set %a #random % 100
  
 +
 +
;make a random number between two set numbers
 +
set %random1 #random % %increments + %base
 +
 +
;%increments is the number of different numbers to choose from calculated by (top - bottom) + 1.
 +
 +
;%base is the bottom value from your list of numbers.
 
</pre>
 
</pre>
 
{{footer}}
 
{{footer}}

Revision as of 10:30, 6 March 2006

Holds a changing random value that ranges between 0 and 999.

Example


; make a random number between 0 and 99.
set %a #random % 100


;make a random number between two set numbers 
set %random1 #random % %increments + %base

;%increments is the number of different numbers to choose from calculated by (top - bottom) + 1.

;%base is the bottom value from your list of numbers.

See also

Main Page Documentation