RandReal Function

Action

Returns a random real number.

Syntax

rRand = RandReal()
Variable Description
rRand The returned random number. REAL.

Notes

RandReal returns a random real (floating-point) number between 0 and 1 exclusive (that is, up to but not including 1).

For more information about how random number generation works, see RandSeed Function.

Example

REAL rPercent
rPercent = RandReal()
Print ("Your annual pay raise will be {rPercent * 10}%.")