rand (ULTRIX) rand (ULTRIX)
NAME
rand, srand - Generates pseudo-random numbers
LIBRARY
Standard C Library (libc.a),
Reentrant Library (lobc_r.a)
Berkeley Compatibility Library (libbsd.a)
BSD COMPATIBILITY
The Digital UNIX system provides the libbsd.a library to allow you to
use library functions that are compatible with ULTRIX BSD library func‐
tions. To use the BSD functions, your program needs to be compiled with
-D_BSD and the -lbsd options.
The rand() function returns a number in the range of 0 to (2^3l)-1
rather than 0 to (2^15)-1. The srand() function provides a seed for the
random number generator.
RELATED INFORMATION
Digital UNIX Functions:
rand(3), srand(3), drand48(3), random(3) delim off
rand (ULTRIX)