|
|
◆ srand48()
| void srand48 |
( |
long |
seed | ) |
|
Initialization with 32-bit seed for drand48, lrand48 and mrand48 (Linear congruential method)
- Purpose
- This routine initializes drand48, lrand48 and mrand48.
- Parameters
-
| [in] | seed | 32-bit integer seed (the remaining lower 16 bits of the internal buffer being set to 0x330e). |
- Note
- If the random number generator is called without an initialization by seed48() or srand48(), it will be automatically initialized by using xseed[0] = 0x330e, xseed[1] = 0xabcd, and xseed[2] = 0x1234 as the parameters for seed48().
- The multiplicand a and the addend c, set up by lcong48, will be reset to the default values.
- This routine is provided for Windows version.
|