Fix uniform int distribution

This commit is contained in:
Nikita Lisitsa 2020-09-25 17:20:14 +03:00
parent 44f293c023
commit 6a64c36e01

View file

@ -67,7 +67,7 @@ namespace psemek::pcg
{
ctype const gen_range_full = gen_range + 1;
ctype const buckets = rng_range / gen_range_full;
ctype const max = gen_range * buckets;
ctype const max = gen_range_full * buckets;
do
{