Pseudo-random number generation
From cppreference.com
<
c
|
numeric
C
Language
Standard Library
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)
srand
seeds pseudo-random number generator
(function)
RAND_MAX
maximum possible value generated by
rand
(
)
(macro constant)