nrand48_r

Name

nrand48_r -- reentrantly generate pseudorandom numbers in a uniform distribution

Synopsis

#include <stdlib.h>

int nrand48_r(unsigned short[3] xsubi, struct drand48_data * buffer, long int * result);

Description

The interface nrand48_r() shall function in the same way as the interface nrand48(), except that nrand48_r() shall use the data in buffer instead of the global random number generator state.

Before it is used, buffer must be initialized, for example, by calling lcong48_r(), seed48_r(), or srand48_r(), or by filling it with zeroes.