RND

Top  Previous  Next

Syntax

FLOAT = RND(num as FLOAT ,opt max=0 as FLOAT)

Description

Creates a pseudo random number.

Parameters

num - Beginning or ending number for the range.

max - Optional. If given then the random number will be between num and max. Otherwise random number will be between 0 and num.

Return value

A floating point random number

Remarks

Maximum random range is -32765.0 <= number <= 32766.0

See Also RAND, SEEDRND

Example usage

num = RND(1.0)
num2 = RND(10.0, 20.5)