mardi 1 novembre 2016

Achieve same random int numbers sequence on different operating system with same seed

So. The question is in the title. Is there any way to achieve same random numbers sequence in different operating system with same seed. I have tried this code:

std::default_random_engine engine(seed);
std::uniform_int_distribution<int> dist(0, N-1);

If i ran this code on one machine multiple times with same seed - sequence of dist(engine) is the same, but on different operating system sequence is different.

Aucun commentaire:

Enregistrer un commentaire