summaryrefslogtreecommitdiff
path: root/src/random.hpp
diff options
context:
space:
mode:
authorStephen Enders <smenders@gmail.com>2021-01-23 11:52:32 -0500
committerStephen Enders <smenders@gmail.com>2021-01-23 11:52:32 -0500
commita408a43cd105b89a8d44292e2ef69802a5660497 (patch)
treea70ce8c54f57c2f6f2a8603b9e45d352cc5bc083 /src/random.hpp
parentf01537a8ff454b68b83574f16cb4e2ff244a4e8a (diff)
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
Diffstat (limited to 'src/random.hpp')
-rw-r--r--src/random.hpp19
1 files changed, 19 insertions, 0 deletions
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 <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