LLRANCW_R 3CW "05 January 2007" "mathcw-1.00"
Table of contents
llrancw_r - return uniformly-distributed pseudorandom 64-bit unsigned integer with external state
cc [ flags ] -I/usr/local/include file(s) -L/usr/local/lib -lmcw [ ... ]
#include <mathcw.h>
extern UINT_LEAST64_T llrancw_r (randcw_state_t state);
Compute a uniformly-distributed pseudorandom 64-bit unsigned integer.
The generator state is keep externally in the state argument, a vector
of four UINT_LEAST32_T values, most conveniently initialized
with incw_r(). This makes the functions thread safe, and
allows creation of a practically-unlimited number of independent
families of generators, each with its own state.
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.
The generated values span the range (0, 2**64 - 1); neither endpoint
is reachable.
Return the pseudorandom integer.
None.
ercw(3CW),
ercw_r(3CW),
gscw(3CW),
incw_r(3CW),
llrancw(3CW),
llrincw(3CW),
llrincw_r(3CW),
lrancw(3CW),
lrancw_r(3CW),
lrcw(3CW),
lrcw_r(3CW),
lrincw(3CW),
lrincw_r(3CW),
mscw(3CW),
nrcw(3CW),
nrcw_r(3CW),
sccw(3CW),
sscw(3CW),
urcw(3CW),
urcw1(3CW),
urcw1_r(3CW),
urcw2(3CW),
urcw2_r(3CW),
urcw3(3CW),
urcw3_r(3CW),
urcw4(3CW),
urcw4_r(3CW),
urcw_r(3CW),
vercw(3CW),
vercw_r(3CW),
vllrancw(3CW),
vllrancw_r(3CW),
vllrincw(3CW),
vllrincw_r(3CW),
vlrancw(3CW),
vlrancw_r(3CW),
vlrcw(3CW),
vlrcw_r(3CW),
vlrincw(3CW),
vlrincw_r(3CW),
vnrcw(3CW),
vnrcw_r(3CW),
vurcw(3CW),
vurcw1(3CW),
vurcw1_r(3CW),
vurcw2(3CW),
vurcw2_r(3CW),
vurcw3(3CW),
vurcw3_r(3CW),
vurcw4(3CW),
vurcw4_r(3CW),
vurcw_r(3CW).