|
|
◆ Srand48()
| Sub Srand48 |
( |
Seed As |
Long | ) |
|
Initialization with 32-bit seed for Drand48, Lrand48 and Mrand48 (Linear congruential method)
- Purpose
- This routine initializes seed for Drand48, Lrand48 and Mrand48. Also resets the parameters of linear congruential method, multiplicand a and addend c, to the default values.
- Parameters
-
| [in] | Seed | 32-bit integer seed. |
- Note
- If the random number generator is called without an initialization by Seed48() or Srand48(), it will be automatically initialized by using 305441741 as the seed.
The multiplicand a and the addend c, set up by Lcong48(), will be reset to the default values.
- Example Program
- See example of Drand48 and Erand48.
|