Returns a pseudo-random integer value between 0 and.
- See also
- RAND_MAX (0 and
-
RAND_MAX included).
Returns a pseudo-random integer value between 0 and
- See also
- RAND_MAX (0 and
-
RAND_MAX included).
-
srand() seeds the pseudo-random number generator used by rand. If rand is used before any calls to
-
srand, rand behaves as if it was seeded with
-
srand. Each time rand is seeded with srand, it must produce the same sequence of values.
rand is not guaranteed to be thread-safe.
- Returns
- Pseudo-random integer value between 0 and RAND_MAX, inclusive.
Referenced by main().