aboutsummaryrefslogtreecommitdiff
path: root/src/randomization/generator.hpp
blob: 3acfc98cb20f93030d3930dc6de5859b541d81f5 (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 unsigned int &seed);

	[[nodiscard]] unsigned int in_range(const unsigned int &a,
										const unsigned int &b) const override;

private:
	std::unique_ptr<std::mt19937> _generator;
};