OFFSET
1,1
COMMENTS
These are the values the function generates in PARI/GP v 2.7.0, using Richard Brent's XORGEN algorithm.
For all n, 0 < a(n) < 2^31.
All 32-bit PARI versions > 2.4 should yield this sequence of pseudo-random numbers, when the random generator is in its initial state or reset to that state using setrand(1). - M. F. Hasler, Sep 18 2016
The generator has a period of 2^4096-1. - Hugo Pfoertner, Sep 18 2016
LINKS
Felix Fröhlich, Table of n, a(n) for n = 1..10000
Richard P. Brent, Some long-period random number generators using shifts and xors, ANZIAM Journal 48 (CTAC2006), C188-C202, 2007.
PARI, Catalogue of GP/PARI Functions, Conversions and similar elementary functions or commands: random({N = 2^{{31}}})
PROG
(PARI) a(n) = random \\ Works only if called first with n=1, then with n=2, etc, and if the internal random generator was never called before or reset via setrand(1)
(PARI) setrand(1); A260083=vector(100, i, random()) \\ M. F. Hasler, Sep 18 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
Felix Fröhlich, Jul 15 2015
STATUS
approved