COHERENT manpages
This page displays the COHERENT manpage for srand48() [Seed the 48-bit pseudo-random number routines].
List of available manpages
Index
srand48() -- Random-Number Function (libc) Seed the 48-bit pseudo-random number routines void srand48(seedval) long seedval; 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 srand48() builds the 48-bit ``seed'' value from a long integer. The 32 bits of the long integer comprise the high 32 bits of the seed; the low 16 bits are filled with the value 0x33E. Functions lcong48() and seed48() can also be used to seed the routines that generate 48-bit pseudo-random numbers. srand48() returns nothing. See Also drand48(), erand48(), jrand48(), libc, lcong48(), lrand48(), mrand48(), nrand48(), seed48()