Loading

RANDOM

math

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.

RANDOM is available since version 1.2.23.

See also

Signatures

Examples

RANDOM