Loading

RANDOM


math
Since v1.2.23
Available on all platforms
See also

The RANDOM function pushes onto the stack a random DOUBLE between 0.0 (inclusive) and 1.0 (exlusive) generated by the seeded Pseudorandom Number Generator (PRNG).

This function is very similar to SRAND except the seed is choosen pseudorandomly when the function is first called. Subsequent calls use the same generator.

This generation is NOT cryptographically secure, use RAND if you need a secure random number.

Signature

Examples

RANDOM