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/rand.html | 73 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 reference/C/FUNCTIONS/rand.html (limited to 'reference/C/FUNCTIONS/rand.html') diff --git a/reference/C/FUNCTIONS/rand.html b/reference/C/FUNCTIONS/rand.html new file mode 100644 index 0000000..afbba99 --- /dev/null +++ b/reference/C/FUNCTIONS/rand.html @@ -0,0 +1,73 @@ +rand function + + + + + + +

rand function

+rand will generate a random number between 0 and 'RAND_MAX' +(at least 32767). + +
+Library:   stdlib.h
+
+Prototype: int rand(void);
+
+Syntax:	   int r;                 		/* Random number	*/
+
+           r = rand();
+
+ +
+

Notes

+ +
+ +example program.

+ +


+

See also:

+ +

+
+
srand Seed the randon number generator. + +
+
rand man page. +
+ + +

+ +


+

+

+ + + + +
+ Top + + Master Index + + Keywords + + Functions +
+
+

+


+
Martin Leslie +

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