summaryrefslogtreecommitdiff
path: root/random.hpp
diff options
context:
space:
mode:
authorStephen Enders <smenders@gmail.com>2021-01-20 22:53:14 -0500
committerStephen Enders <smenders@gmail.com>2021-01-21 20:56:16 -0500
commitbb25b2bc17ca4cada09da38d209be57a55020d31 (patch)
tree04fbdaf27804dcf6991172e11ed44ae9b71eb4fe /random.hpp
parenteccb6df404b9ae052b9d13750f54dc69241668b4 (diff)
Add rolling animation
Diffstat (limited to 'random.hpp')
-rw-r--r--random.hpp19
1 files changed, 19 insertions, 0 deletions
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 <random>
+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<float> distribution;
+};
+}
+#endif