Rand function
Syntax
Rand( )
Description
Use the Rand function
to generate a random number greater than or equal to 0 and less than
1. To generate a random integer that is greater than or equal to
0 but less than x, use Int(Rand()*x).
Returns
Returns a random Number value greater than or equal to 0 and less than 1.
Example
The example sets &RANDOM_NUM to a random value less than 100.
&RANDOM_NUM = Int(Rand( )*100)
Related Topics