Guardian Native C Library Calls Reference Manual (G06.28+, H06.04+)
Guardian Native C Library Calls (s) srand(3)
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 Specifies 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.
527192-005 Hewlett-Packard Company 6−37