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

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


SEE ALSO

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


PTC MKS Toolkit 10.4 Documentation Build 39.