Action |
Returns a pseudo random number.
Syntax |
RND (Range)
Parameter |
Range
Optional parameter indicating the range for the return value (maximum and default value = 32767).
Returns |
Pseudo random number.
Remarks |
The RND function returns a pseudorandom integer ranging from 0 to the maximum specified. Use the SRND function to seed the pseudorandom-number generator before calling RND.
Example |
$x = RND()
$x = RND(10)