cppreference.com
Search
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
View
Edit
History
Actions
Pseudorandom number generation
From cppreference.com
<
c

numeric
Revision as of 17:40, 4 June 2014 by
Diego91b
(
Talk

contribs
)
(
diff
)
← Older revision
 Latest revision (diff)  Newer revision → (diff)
C
Language
headers
Type support
Dynamic memory management
Error handling
Program utilities
Variadic function support
Date and time utilities
Strings library
Algorithms
Numerics
Input/output support
Localization support
Thread support
(C11)
Atomic operations
(C11)
Technical Specifications
[edit]
Numerics
Common mathematical functions
Floatingpoint environment
Complex number arithmetics
Random number generation
Typegeneric math
[edit]
Pseudorandom number generation
rand
srand
RAND_MAX
[edit]
Defined in header
<stdlib.h>
rand
generates a pseudorandom number
(function)
[edit]
srand
seeds pseudorandom number generator
(function)
[edit]
RAND_MAX
maximum possible value generated by
rand
(
)
(macro constant)
[edit]
[
edit
]
See also
C++ documentation
for
Pseudorandom number generation