diff options
author | HampusM <hampus@hampusmat.com> | 2022-06-02 20:07:09 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-13 17:57:00 +0200 |
commit | cf3bfd60ad03f2feb2ccc62a12fc2922bdc2fb71 (patch) | |
tree | 9ea6c1465ec499cff6b24fe57d1a1b2e469a2dd1 /src/randomization/generator.cpp | |
parent | eecf4b1e666211a13afa56f93477c55e8fd01621 (diff) |
refactor: remove randomization & argument parser
Diffstat (limited to 'src/randomization/generator.cpp')
-rw-r--r-- | src/randomization/generator.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/randomization/generator.cpp b/src/randomization/generator.cpp deleted file mode 100644 index 49adb97..0000000 --- a/src/randomization/generator.cpp +++ /dev/null @@ -1,14 +0,0 @@ -#include "generator.hpp" - -RandomNumberGenerator::RandomNumberGenerator(const uint32_t &seed) noexcept -{ - this->_generator = std::make_unique<std::mt19937>(seed); -} - -auto RandomNumberGenerator::in_range(const uint32_t &a, const uint32_t &b) const noexcept - -> uint32_t -{ - auto random_distribution = std::uniform_int_distribution<uint32_t>(a, b); - - return random_distribution(*this->_generator); -} |