Name
RndF -- generate a random float (V1.5)
Synopsis
result = RndF()
Library
math

Function
This function returns a random floating point number in the range of 0.0 to 1.0 (exclusive). The seed value used by RndF() can be set using the RndSeed() function.

Note that before Hollywood 8.0 this function's upper boundary was documented as 1.0 (inclusive). This was wrong. The value returned by RndF() is guaranteed to be less than 1.0.

Inputs
none

Results
result
a random float in the range of 0.0 to 1.0 (exclusive)
Example
num = RndF()
num is set to random floating point number between 0.0 and 1.0.

Show TOC