Boost Users :
Subject: Re: [Boost-users] [random] Bias in boost::random generators?
From: Tiago de Paula Peixoto (tiago_at_[hidden])
Date: 2009-05-24 03:41:19
-----BEGIN PGP SIGNED MESSAGE-----
Steven Watanabe wrote:
>> I obtain similar results with other generators, except with
>> minstd_rand, where the sequences from both libraries are the
>> same. This lead me to conclude that the problem is with the
>> generators themselves, not with uniform_int<>.
> The problem is in uniform_int<>. The behavior of uniform_int depends
> on the range of the generator.
It is true, I don't see this problem when using a uniform_real<>
distribution. But I do see it with uniform_smallint<> as well.
In any case, uniform_int<> and uniform_smallint<> are quite broken, if
they can't be uniform for such a small range.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
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