login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A221557 Consecutive values produced by the C++ mt19937 (Mersenne twister) random number generator with the default seed (5489). 4
3499211612, 581869302, 3890346734, 3586334585, 545404204, 4161255391, 3922919429, 949333985, 2715962298, 1323567403, 418932835, 2350294565, 1196140740, 809094426, 2348838239, 4264392720, 4112460519, 4279768804, 4144164697, 4156218106, 676943009, 3117454609 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

COMMENTS

The C++ Mersenne twister uses a different seeding procedure than the one in Matsumoto and Nishimura's paper.

LINKS

Eric M. Schmidt, Table of n, a(n) for n = 1..1000

Makoto Matsumoto and Takuji Nishimura, Mersenne Twister: A 623-dimensionally equidistributed uniform pseudo-random number generator, ACM Transactions on Modeling and Computer Simulation: Special Issue on Uniform Random Number Generation, Vol. 8, No. 1, January 1998, pp. 3-30.

Index entries for sequences related to pseudo-random numbers.

PROG

(C++)

#include <iostream>

#include <random>

void A221557(int max)

{

  std::mt19937 gen;

  for (int i = 1; i <= max; ++i)

    std::cout << i << ' ' << gen() << '\n';

}

CROSSREFS

Cf. A221558.

Sequence in context: A017386 A017506 A017638 * A217003 A159301 A113027

Adjacent sequences:  A221554 A221555 A221556 * A221558 A221559 A221560

KEYWORD

nonn

AUTHOR

Eric M. Schmidt, Jan 20 2013

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 September 21 15:50 EDT 2020. Contains 337272 sequences. (Running on oeis4.)