c++11 - Largest Seed Possible for Mersenne Twister c++ -


i find out largest value can seed random number generator in c++. code follows:

mt19937 myrandomgenerator(seed); 

how large can variable, seed be? have noticed if value becomes large, random number generator spits out same sequence of 'random' numbers. know how large seed can without happening.

seed std::uint_fast32_t 32-bit int. every value in range [0..2^32) should produce different results. if seeing same sequence 2 different seed values, either making observational error , seed inputing same, or there bug in standard library implementation.

prepare short self-contained test program demonstrating misbehaviour , post here.


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -