basic.rnd Function/BASIC Program

basic.rnd

Command basic.rnd Function/BASIC Program
Applicable release versions: AP, R83
Category BASIC Program (486)
Description generates a random number.

The generated number is in the range of 0 and the value specified in a numeric expression, minus one.

The range of the numeric expression may be up to 32,000.
Syntax rnd(num.expression)
Options
Example
increment = rnd(8) + 1 

The "rnd" function in this example generates a random number between 
1 and 8. 1 is added to the result to ensure that the increment is never zero.
Purpose
Related basic.statements
basic.precision
basic.num.expression
basic.functions