RND (Random Number)

The RND function is used to generate a random number.

Syntax

variable = RND

Remarks

The RND function returns a single value less than 1 but greater than or equal to 0.

To produce random integers in a given range, use this formula:

INT( ( upperbound - lowerbound + 1 ) * RND + lowerbound )

Here, upperbound is the highest number in the range, and lowerbound is the lowest number in the range.