XLPack 7.0
XLPack Numerical Library (C API) Reference Manual
Loading...
Searching...
No Matches

◆ ranf_start()

void ranf_start ( long  seed)

Initialization for real random number generator (Lagged Fibonacci method)

Purpose
Initializes the real random number generators based on the Lagged Fibonacci method, ranf_array() and ranf_arr_next().
Parameters
[in]seedSeed.
Note
If ranf_array() or ranf_arr_next() is called without an initialization by ranf_start(), 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)