Fix uniform int distribution
This commit is contained in:
parent
44f293c023
commit
6a64c36e01
1 changed files with 1 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ namespace psemek::pcg
|
||||||
{
|
{
|
||||||
ctype const gen_range_full = gen_range + 1;
|
ctype const gen_range_full = gen_range + 1;
|
||||||
ctype const buckets = rng_range / gen_range_full;
|
ctype const buckets = rng_range / gen_range_full;
|
||||||
ctype const max = gen_range * buckets;
|
ctype const max = gen_range_full * buckets;
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue