Table of Contents Previous topic Next topic
COMPILER LIBRARY FUNCTIONS->Detailed Descriptions->srand()
Summary
#include <stdlib.h>
void srand(unsigned int seed) Seed random number generator
Parameter
seed Seed for use by rand()
Description
This function sets a new starting point for the pseudo random number generator. The value of seed is used as the new seed for the new sequence. The initial value of seed is 1;
Return Value
None.