SRANCW 3CW "05 January 2007" "mathcw-1.00"
Table of contents
srancw - set pseudorandom number generator seed
cc [ flags ] -I/usr/local/include file(s) -L/usr/local/lib -lmcw [ ... ]
#include <mathcw.h>
Set the pseudorandom number generator seed to new_seed and
return the old seed. The seed changes each time a pseudorandom number
is generated.
The generator is Marsaglia's KISS generator, which has a long period
of about 2**123 (approximately 10**37), and has passed several
difficult tests of randomness, including Marsaglia's Diehard Battery
test suite, and the Marsaglia/Tsang tuftest suite.
srancw()
returns the old seed.
None.
llrancw(3CW),
lrancw(3CW),
urcw(3CW),
urcw1(3CW),
urcw2(3CW),
urcw3(3CW),
urcw4(3CW).