
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 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. Cheers, Tiago -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkoY+h8ACgkQBNxGHvNv413UNwCfRMG87zLMCGTHFwCTZwf5lO3Q LGUAnRXGPnGiR+0TglZ2Fau0Y9j4n2rX =iL6U -----END PGP SIGNATURE-----