Utility Functions and C Language Reference > C Language Reference > Alphabetical List of Functions > srand

srand

Example: srand Mathematics Functions

Seeds the pseudo-random number generator.

int srand( seedTime ); 

Before invoking rand, call srand to seed the pseudo-random number generator.

Return Value

Returns a pseudo-random integer in the range 0 to 32767.