summaryrefslogtreecommitdiffhomepage
path: root/src/random.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/random.cpp')
-rw-r--r--src/random.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/random.cpp b/src/random.cpp
index 8ff600f..5d5801b 100644
--- a/src/random.cpp
+++ b/src/random.cpp
@@ -5,10 +5,13 @@
// std libs
#include <cstdlib>
-namespace Random
+namespace Ogle
{
- int get_value(int min, int max)
+ namespace Random
{
- return (std::rand()%(abs(max - min) + 1) + min);
+ int get_value(int min, int max)
+ {
+ return (std::rand()%(abs(max - min) + 1) + min);
+ }
}
}