# Pseudo-random number generation

From cppreference.com
< c‎ | numeric

Defined in header `<stdlib.h>`
rand | generates a pseudo-random number (function)
srand | seeds pseudo-random number generator (function)
RAND_MAX | maximum possible value generated by rand() (macro constant)

### References

- C11 standard (ISO/IEC 9899:2011):

  - 7.22.2 Pseudo-random sequence generation functions (p: 346-347)

- C99 standard (ISO/IEC 9899:1999):

  - 7.20.2 Pseudo-random sequence generation functions (p: 312-313)

- C89/C90 standard (ISO/IEC 9899:1990):

  - 4.10.2 Pseudo-random sequence generation functions

### See also

Retrieved from "https://en.cppreference.com/mwiki/index.php?title=c/numeric/random&oldid=78906"