From a408a43cd105b89a8d44292e2ef69802a5660497 Mon Sep 17 00:00:00 2001 From: Stephen Enders Date: Sat, 23 Jan 2021 11:52:32 -0500 Subject: Move source files to src folder We'll be making a few source files it'll be useful to have them organized at least somewhat from our non-src files --- src/random.hpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/random.hpp (limited to 'src/random.hpp') diff --git a/src/random.hpp b/src/random.hpp new file mode 100644 index 0000000..e74267a --- /dev/null +++ b/src/random.hpp @@ -0,0 +1,19 @@ +#ifndef UR_RANDOM_H +#define UR_RANDOM_H + +#include +namespace ur { +class Random +{ +public: + Random(int min, int max); + int next(); + +private: + int min; + int max; + std::default_random_engine engine; + std::normal_distribution distribution; +}; +} +#endif -- cgit v1.2.3-54-g00ecf