|
Boost Users : |
From: Matt Hurd (matt.hurd_at_[hidden])
Date: 2006-01-09 13:21:55
> On 10/01/06, Giulio Veronesi <giulio_veronesi_at_[hidden]> wrote:
> Hi all,
>
> I've a problem with random number generator. Let us
> consider the following code fragment:
>
> long int s = 123456;
> mt19937 rnd_gen(s);
AFAIK it is picky about about the seed type. Try using
boost::mt19937::result_type instead of long int.
matt.
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