Function Rand() Foundation

Calculates random numbers between 0 and 1.

Syntax
Rand( [<nStartValue>] ;  // Default: 1
    ) --> nRandomNumber
Return

Returns a random number in the range between 0 and 1.

Description

When the function is called repeatedly without a parameter it produces the same series of random numbers for the same initial <nStartValue>.

When <nStartValue> is 0 or less for repeated calls the system time will be used to calculate different random numbers.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.