|
|
◆ RanStart()
| Sub RanStart |
( |
Seed As |
Long | ) |
|
Initialization for integer random number generator (Lagged Fibonacci method)
- Purpose
- Initializes the integer random number generators based on the Lagged Fibonacci method, RanArray() and RanArrNext().
- Parameters
-
- Note
- If RanArray() or RanArrNext() is called without an initialization by RanStart(), it will be automatically initialized by using 314159 as the seed.
- Reference
- D. E. Knuth, “The Art of Computer Programming Third Edition, Vol.2 / Seminumerical Algorithms”, Addison Wesley Longman (1998)
- Example Program
- See example of RanfArray and RanfArrNext.
|