blob: 24b9bd6bca04b4e64d4e70eb6899844ebf227369 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#pragma once
#include "interfaces/randomization.hpp"
#include <memory>
#include <random>
class RandomNumberGenerator : public IRandomNumberGenerator
{
public:
explicit RandomNumberGenerator(const uint32_t &seed) noexcept;
[[nodiscard]] auto in_range(const uint32_t &a, const uint32_t &b) const noexcept
-> uint32_t override;
private:
std::unique_ptr<std::mt19937> _generator;
};
|