summaryrefslogtreecommitdiffhomepage
path: root/src/random.cpp
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2022-11-26 16:46:01 -0500
committerrealtradam <[email protected]>2022-11-26 16:46:01 -0500
commit368269070f851ff78a1bce35c1d993d5f02cc5f9 (patch)
tree83292448b320f561148f16efdbb456c85ab00f87 /src/random.cpp
parent68486053b032fd3313c887ea7d73064e59dce570 (diff)
downloadOgle-368269070f851ff78a1bce35c1d993d5f02cc5f9.tar.gz
Ogle-368269070f851ff78a1bce35c1d993d5f02cc5f9.zip
namespace it all
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);
+ }
}
}