diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-01 21:33:27 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-01 21:33:27 +0100 |
commit | af76b9a0ae58dc8c87548053a5bc310ad6be25ce (patch) | |
tree | b2aa5927ed19855c101120593b59a9c3224804ad /backend/RNG.h | |
parent | bdf6ac149ec260dab767663419731b302679f458 (diff) |
more small tweaks
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(); |