rand, srand - pseudo-random number generator
#include "zkStdlib.h"
int rand (void);
void srand(unsigned int seed);
The rand() function computes a sequence of pseudo-random integers in the range 0 to {RAND_MAX} with a period of at least 232.
The srand() function uses the argument as a seed for a new sequence of pseudo-random numbers to be returned by subsequent calls to rand(). If srand() is then called with the same seed value, the sequence of pseudo-random numbers will be repeated. If rand() is called before any calls to srand() are made, the same sequence will be generated as when srand() is first called with a seed value of 1.
The rand() interface need not be reentrant.
The rand() function returns the next pseudo-random number in the sequence. The srand() function returns no value.
No errors are defined.