RND¶
Syntax¶
Versions: 8K, Extended, Disk
Description¶
Returns a random number between 0 and 1. The same sequence of random numbers is generated each time the program is run unless the random number generator is reseeded (see RANDOMIZE). However, X<0 always restarts the same sequence for any given X. X>0 or X omitted generates the next random number in the sequence. X=0 repeats the last number generated.
Example¶
See Also¶
- ABS - Return the absolute value of a number (removes negative sign)
- ATN - Returns the arctangent of X in radians
- COS - Returns the cosine of X in radians
- EXP - Returns e to the power of X
- FIX - Returns the truncated integer part of X
- INT - Return the largest integer less than or equal to a number (floor function)
- LOG - Returns the natural logarithm of X
- SGN - Returns the sign of X (-1, 0, or 1)
- SIN - Returns the sine of X in radians
- SQR - Returns the square root of X
- TAN - Returns the tangent of X in radians