Namespaces
Variants
Views
Actions

Difference between revisions of "c/numeric/random"

From cppreference.com
< c‎ | numeric
m (See also: nomono, langlinks)
m (+C17 ref)
 
Line 10: Line 10:
  
 
===References===
 
===References===
 +
{{ref std c17}}
 +
{{ref std | section=7.22.2 | title=Pseudo-random sequence generation functions | p=252-253}}
 +
{{ref std end}}
 
{{ref std c11}}
 
{{ref std c11}}
 
{{ref std | section=7.22.2 | title=Pseudo-random sequence generation functions | p=346-347}}
 
{{ref std | section=7.22.2 | title=Pseudo-random sequence generation functions | p=346-347}}
 +
{{ref std end}}
 
{{ref std c99}}
 
{{ref std c99}}
 
{{ref std | section=7.20.2 | title=Pseudo-random sequence generation functions | p=312-313}}
 
{{ref std | section=7.20.2 | title=Pseudo-random sequence generation functions | p=312-313}}
 +
{{ref std end}}
 
{{ref std c89}}
 
{{ref std c89}}
 
{{ref std | section=4.10.2 | title=Pseudo-random sequence generation functions}}
 
{{ref std | section=4.10.2 | title=Pseudo-random sequence generation functions}}

Latest revision as of 14:49, 24 June 2022

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

[edit] 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

[edit] See also

C++ documentation for Pseudo-random number generation