SRANCW 3CW "05 January 2007" "mathcw-1.00"

Table of contents


NAME

srancw - set pseudorandom number generator seed

SYNOPSIS

cc [ flags ] -I/usr/local/include file(s) -L/usr/local/lib -lmcw [ ... ]

#include <mathcw.h>




DESCRIPTION

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.

RETURN VALUES

srancw() returns the old seed.

ERRORS

None.

SEE ALSO

llrancw(3CW), lrancw(3CW), urcw(3CW), urcw1(3CW), urcw2(3CW), urcw3(3CW), urcw4(3CW).