[ First ] [ Previous ] [ Next ] [ Last ] [ Manuals ]
srand

Set the pseudo-random number generator seed.
Compatibility:
This function is compatible with the following targets:
Prototype:
#include <stdlib.h>
void srand(unsigned int seed);
Parameters:
Parameters for this facility are:
Remarks:
The srand() function sets the seed for the pseudo-random number generator to seed. Each seed value produces the same sequence of random numbers when it is used.
See Also:
"rand"
For example of labs() usage:
Refer to "Example of rand() usage.".
[ First ] [ Previous ] [ Next ] [ Last ] [ Manuals ]
Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.
Last updated: August 16, 2000