Returns a random real number.
rRand = RandReal()
Variable | Description |
---|---|
rRand | The returned random number. REAL. |
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.
REAL rPercent rPercent = RandReal() Print ("Your annual pay raise will be {rPercent * 10}%.")