8 Dec
2004
8 Dec
'04
2:26 p.m.
Rui Carvalho wrote:
Vladimir Prus wrote:
Sure, because the random number generator is initialized with the same seed on each invocation. You can seed it with current time or something like that.
Thanks for this. Is there anything on the docs/examples on how to initialize the random number generator?
http://boost.org/libs/random/random-generators.html#mersenne_twister
mentions this method:
void seed(DataType value);
I think passing the result of time:
#include
I mean, boost/random/mersenne_twister.hpp seems to be an adaptation of the original Mersenne Twister by Matsumoto and Nishimura -is it the same as the original?
I don't know, sorry. - Volodya