Skip to content

Commit

Permalink
make int in range exclusive
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreya-Autumn committed Jul 14, 2024
1 parent b55eba9 commit 60f92ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/sst/basic-blocks/dsp/RNG.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ struct RNG

inline int unifInt(const int min, const int max)
{
std::uniform_int_distribution<int> intdist(min, max);
std::uniform_int_distribution<int> intdist(min, max - 1);
return intdist(g);
}

Expand Down

0 comments on commit 60f92ab

Please sign in to comment.