##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# Pseudo-random number generation

From cppreference.com
< c‎ | numeric

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

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=c/numeric/random&oldid=56678"