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

◆ ran_start()

void ran_start ( long  seed)

Initialization for integer random number generator (Lagged Fibonacci method)

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