randlc
randlc,
an Octave code which
implements a version of the pseudorandom number generator used by
the NAS Parallel Benchmarks.
The generator has the form
X(K+1) = A * X(K) mod 2^46
where the suggested valule of the multiplier A is 5^13 = 1220703125.
This scheme generates 2^44 numbers before repeating.
The web site for the NAS Parallel Benchmarks is
http://www.nas.nasa.gov/Resources/Software/npb.html.
Licensing:
The computer code and data files described and made available on this web page
are distributed under
the GNU LGPL license.
Languages:
randlc is available in
a C version and
a C++ version and
a Fortran90 version and
a MATLAB version and
an Octave version and
a Python version.
Related Data and Programs:
randlc_test
Reference:

David Bailey, Eric Barszcz, John Barton, D Browning, Robert Carter,
Leonardo Dagum, Rod Fatoohi,
Samuel Fineberg, Paul Frederickson, Thomas Lasinski, Robert Schreiber, Horst Simon,
V Venkatakrishnan, Sisira Weeratunga,
The NAS Parallel Benchmarks,
RNR Technical Report RNR94007,
March 1994.

Donald Knuth,
The Art of Computer Programming,
Volume 2, Seminumerical Algorithms,
Third Edition,
Addison Wesley, 1997,
ISBN: 0201896842,
LC: QA76.6.K64.
Source Code:

randlc.m,
generates the next pseudorandom value.

randlc_jump.m,
jumps ahead to the Kth pseudorandom value.
Last revised on 17 September 2022.