8 Mar
2010
8 Mar
'10
7:06 p.m.
AMDG David Kaplan wrote:
On 8 March 2010 12:39, Diederick C. Niehorster
wrote: You need to seed the random number generator upon creation, default contructed it will always be in the same state.
Thanks - what's the syntax for doing that?
Pass an integer to the constructor or call seed. The easiest way is boost::mt19937 gen(std::time(0)); In Christ, Steven Watanabe