summaryrefslogtreecommitdiffhomepage
path: root/src/random.cpp
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2022-11-25 02:55:55 -0500
committerrealtradam <[email protected]>2022-11-25 02:55:55 -0500
commit4e7226ad1b081982e5cbed349edca1c5b0e1b779 (patch)
tree6d497896f979e6bbcb0841d33d3a2815333cfef9 /src/random.cpp
parent6e1d0c6a3f3699e44000f411cd93261c460f75a9 (diff)
downloadOgle-4e7226ad1b081982e5cbed349edca1c5b0e1b779.tar.gz
Ogle-4e7226ad1b081982e5cbed349edca1c5b0e1b779.zip
fixed Makefile, implemented bunnymark
Diffstat (limited to 'src/random.cpp')
-rw-r--r--src/random.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/random.cpp b/src/random.cpp
new file mode 100644
index 0000000..ec49e36
--- /dev/null
+++ b/src/random.cpp
@@ -0,0 +1,9 @@
+#include "random.hpp"
+#include <cstdlib>
+namespace Random
+{
+ int get_value(int min, int max)
+ {
+ return (std::rand()%(abs(max - min) + 1) + min);
+ }
+}