|
|
◆ RanfStart()
| Sub RanfStart |
( |
Seed As |
Long | ) |
|
Initialization for real random number generator (Lagged Fibonacci method)
- Purpose
- Initializes the real random number generators based on the Lagged Fibonacci method, RanfArray() and RanfArrNext().
- Parameters
-
- Note
- If RanfArray() or RanfArrNext() is called without an initialization by RanfStart(), 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.
|