srandom()

initialize random number generator 

Function


SYNOPSIS

#include <stdlib.h>

void srandom(unsigned int seed);


DESCRIPTION

This function initializes the random number generator by setting the state table values based on seed. Then it cycles the state information for a fixed number of times to get rid of any initial dependencies. The state table information affects the returned random numbers of the subsequent random() calls.


PARAMETERS

seed 

Specifies an initial seed value to update state table information.


RETURN VALUES

None.


CONFORMANCE

UNIX 98.


MULTITHREAD SAFETY LEVEL

Unsafe.


PORTING ISSUES

None.


AVAILABILITY

MKS Toolkit for Professional Developers
MKS Toolkit for Enterprise Developers
MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
initstate(), rand(), random(), setstate(), srand()


MKS Toolkit 9.2 Documentation Build 16.