RAND

Top  Previous  Next

Syntax

UINT = RAND(num as UINT,opt max=0 as INT)

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

An integer random number

Remarks

Maximum random range is 0 <= number <= 65535

See Also RND, SEEDRND

Example usage

num = RAND(50)
num2 = RAND(10,20)