login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A260083 Consecutive numbers generated by the 'random' function in PARI (32 bit, version > 2.4) using the default argument (2^31). 3
326511477, 1362174608, 903267448, 656347688, 1853455872, 693790135, 1743812782, 1381849689, 1919384312, 561030593, 610902088, 1730365257, 1381380589, 1437333698, 1880143150, 1861285526, 135271255, 2062787134, 476812016, 748713098, 702275007, 1351923632 (list; graph; refs; listen; history; text; internal format)
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

Cf. A061364, A096558, A221555, A221556, A221557, A221558, A221559, A221560, A221561, A221562.

Cf. A276820: Corresponding 64 bit random number generator.

Sequence in context: A104923 A153753 A035794 * A233708 A022239 A222978

Adjacent sequences:  A260080 A260081 A260082 * A260084 A260085 A260086

KEYWORD

nonn

AUTHOR

Felix Fröhlich, Jul 15 2015

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 18 13:25 EDT 2019. Contains 326100 sequences. (Running on oeis4.)