
Click above to get retro games delivered to your door ever month!
X-Hacker.org- libc - <b>srandom</b>
[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
srandom
=======
Syntax
------
#include <stdlib.h>
int srandom(int seed);
Description
-----------
This function initialized the random number generator (random:.).
Passing the same SEED results in `random' returning predictable
sequences of numbers.
Return Value
------------
Zero.
Example
-------
srandom(45);
See Also: random
Online resources provided by: http://www.ousob.com --- NG 2 HTML conversion by Dave Pearson