From 7e0f021a9aec35fd8e6725e87e3313b101d26f5e Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Sun, 27 Jan 2008 11:37:44 +0100 Subject: Initial import (2.0.2-6) --- reference/C/FUNCTIONS/srand.html | 73 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 reference/C/FUNCTIONS/srand.html (limited to 'reference/C/FUNCTIONS/srand.html') diff --git a/reference/C/FUNCTIONS/srand.html b/reference/C/FUNCTIONS/srand.html new file mode 100644 index 0000000..f0d42ee --- /dev/null +++ b/reference/C/FUNCTIONS/srand.html @@ -0,0 +1,73 @@ +srand function + + + + + + +
+
+

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 +

+ + -- cgit v1.2.3-54-g00ecf