Boost logo

Boost Users :

Subject: Re: [Boost-users] Random number generation
From: David Kaplan (davkaplan_at_[hidden])
Date: 2010-03-08 14:28:10


>
>
>> Pass an integer to the constructor or call seed.
> The easiest way is
>
> boost::mt19937 gen(std::time(0));
>
> Thanks. Btw, I came across your blog,
it really helped me with boost threading!



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net