Loading

SRAND

math

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

The seeded PRNG must have been initialized beforehand using PRNG.

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

SRAND is available since version 1.2.9.

See also

Signatures

Examples

42 PRNG SRAND // Gives the same pseudo-random number as the seed is reset to the same value. 42 PRNG SRAND