rand
From cppreference.com
| Defined in header <stdlib.h>
|
||
| int rand(); |
||
Returns a uniformly distributed pseudo-random integral value between 0 and RAND_MAX (0 and RAND_MAX included).
srand() should be called before any calls to rand() to initialize the random number generator.
Contents |
[edit] Parameters
(none)
[edit] Return value
Pseudo-random integral value between 0 and RAND_MAX.
[edit] Example
| This section is incomplete Reason: no example |
[edit] See also
| initializes pseudo-random number generator (function) | |
| C++ documentation for rand
| |