diff options
Diffstat (limited to 'backend/RNG.h')
-rw-r--r-- | backend/RNG.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/backend/RNG.h b/backend/RNG.h index ded337c..3c168bd 100644 --- a/backend/RNG.h +++ b/backend/RNG.h @@ -1,5 +1,7 @@ #pragma once +#include "Range.h" + #include <random> class RNG { @@ -8,7 +10,10 @@ public: public: int rand_int(const int upper); + //! \note upper is non-inclusive int rand_int(const int lower, const int upper); + //! \note range is inclusive + int rand_int(const Range<int> range); double rand_double(); double rand_double(const double lower, const double upper); bool rand_bool(); |