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

er
summaryrefslogtreecommitdiff

path: root/sound/isa/sb/sb_mixer.c
AgeCommit message (Expand)AuthorFilesLines