Open System Services Library Calls Reference Manual (G06.27+, H06.04+)

srand(3) OSS Library Calls Reference Manual
NAME
srand - Generates pseudorandom numbers
LIBRARY
G-series native Guardian processes: $SYSTEM.SYSnn.ZCRESRL
G-series native OSS processes: /G/system/sysnn/zcresrl
H-series native Guardian processes: $SYSTEM.ZDLLnnn.ZCREDLL
H-series OSS processes: /G/system/zdllnnn/zcredll
SYNOPSIS
#include <stdlib.h>
void srand(
unsigned int seed);
PARAMETERS
seed Species an initial seed value.
DESCRIPTION
The srand() function resets the random-number generator to a random starting point. The gen-
erator is initially seeded with a value of 1.
RETURN VALUES
The srand() function returns no value.
ERRORS
None. This function does not set errno.
666 Hewlett-Packard Company 527187-004