W3cubDocs

/C

Pseudo-random number generation

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

References

  • C17 standard (ISO/IEC 9899:2018):
    • 7.22.2 Pseudo-random sequence generation functions (p: 252-253)
  • 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

C++ documentation for Pseudo-random number generation

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/c/numeric/random