srand function


srand seeds the random number generation function rand so it does not produce the same sequence of numbers.

Library:   stdlib.h

Prototype: void srand(unsigned int seed);

Syntax:	   unsigned int seed=10;       		/* seed value 		*/

           srand();

Notes


example program.


See also:

rand Generate a randon number generator.
time get the calender time (Number of seconds since 1st Jan 1970.


Top Master Index Keywords Functions


Martin Leslie

sTobias Klauser
summaryrefslogtreecommitdiff

path: root/tools/lguest/extract
AgeCommit message (Expand)AuthorFilesLines