阅读背景:

如何使用在多种类型的编译器和内核上生成相同的随机数序列?

来源:互联网 

The problem

I need to produce the same (pseudo) random number sequence on different machines and compilers. If I use the same kernel, it seems that the implementetion of mersenne twister (MT) in g++ works well: regardless if I compile my program on a newer machine, with g++ 4.9 or 4.7, I get the same random numbers. But I get different ones if I use older kernel or if I change to Visual Studio's compiler. That's ok, because there's no gurantee that I need to produce the same (pseud




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: