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

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