Loading

SRAND


math
Since v1.2.9
Available on all platforms
See also

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.

Signature

Examples

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