COHERENT manpages

This page displays the COHERENT manpage for lcong48() [Initialize values from which 48-bit random numbers are computed].

List of available manpages
Index


lcong48() -- Random-Number Function (libc)

Initialize values from which 48-bit random numbers are computed
long lcong48(param)
unsigned short param[7];

Computation of  48-bit pseudo-random numbers  uses two 48-bit  integers and
one 16-bit integer.  One of the 48-bit values holds the ``seed'' value from
which the  48-bit pseudo-random  value is computed.   This seed can  be set
explicitly, or is  the previously computed pseudo-random number.  The other
48-bit integer holds the  multiplier from which the pseudo-random number is
computed; and the 16-bit integer gives holds the addend.

Function lcong48() initializes the variables used to compute 48-bit pseudo-
random numbers.   param is an  array of seven unsigned  short integers that
hold  the  initializers:  param[0]  through  param[2]  hold  the  ``seed'';
param[3]  through param[5]  hold  the multiplier;  and  param[6] holds  the
addend.

lcong48() returns nothing.

See Also

libc,
srand48()