From bb25b2bc17ca4cada09da38d209be57a55020d31 Mon Sep 17 00:00:00 2001 From: Stephen Enders Date: Wed, 20 Jan 2021 22:53:14 -0500 Subject: Add rolling animation --- random.hpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 random.hpp (limited to 'random.hpp') diff --git a/random.hpp b/random.hpp new file mode 100644 index 0000000..e74267a --- /dev/null +++ b/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