XLPack 7.0
XLPack Numerical Library (Excel VBA) Reference Manual
Loading...
Searching...
No Matches

◆ 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
[in]seedSeed.
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.