| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
#include <stdlib.h> int srandom(int seed); |
Initializes the random number generator (see section random). Passing the
same seed results in random returning predictable sequences
of numbers, unless see section initstate or see section setstate are called.
Zero.
| ANSI/ISO C | No |
| POSIX | No |
srandom(45); |