![]() |
![]() |
![]() |
Initialize a sequence of pseudo-random numbers
#include <stdlib.h> void lcong48( unsigned short int param[7] );
libc
The lcong48() allows full control over the multiplicand and addend used in drand48(), erand48(), lrand48(), nrand48(), mrand48(), and jrand48(), and the seed used in drand48(), lrand48(), and mrand48(). An array of 7 shorts is passed as parameter; the first three shorts are used to initialize the seed; the second three are used to initialize the multiplicand; and the last short is used to initialize the addend. It isn't possible to use values greater than 0xFFFF as the addend.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | No |
Thread | No |
drand48(), erand48(), jrand48(), lrand48(), mrand48(), nrand48(), seed48(), srand48()
![]() |
![]() |
![]() |