cppreference.com
Search
Log in / create account
Namespaces
Page
Discussion
Variants
Views
View
Edit
History
Actions
Pseudo-random number generation
From cppreference.com
<
c
|
numeric
C
Language
Type support
Dynamic memory management
Error handling
Program utilities
Date and time utilities
Strings library
Algorithms
Numerics
Input/output support
Localization support
Thread support
(C11)
Atomic operations
(C11)
Numerics
Common mathematical functions
Floating-point environment
Complex number arithmetics
Random number generation
Type-generic math
Pseudo-random number generation
rand
srand
RAND_MAX
Defined in header
<stdlib.h>
rand
generates a pseudo-random number
(function)
[edit]
srand
initializes pseudo-random number generator
(function)
[edit]
RAND_MAX
maximum possible value generated by
rand
(
)
(macro constant)
[edit]