RANDOM

Purpose: Random number generator

Format:     RANDOM( range )

Notes:      RANDOM  produces a random number with a value anywhere between  0  and  rangerange  must be a valid numeric value or variable name.

Example:

# Draw random numbers between -50 and +50.

# Assign a random fraction to 'a'
a = random(100) - 50

# Remove the fractional part.
a = round(a)

# Print out the results

print "Out of 100 numbers I selected: " a

pause
exit