diff options
| author | realtradam <[email protected]> | 2022-11-26 16:46:01 -0500 |
|---|---|---|
| committer | realtradam <[email protected]> | 2022-11-26 16:46:01 -0500 |
| commit | 368269070f851ff78a1bce35c1d993d5f02cc5f9 (patch) | |
| tree | 83292448b320f561148f16efdbb456c85ab00f87 /src/random.cpp | |
| parent | 68486053b032fd3313c887ea7d73064e59dce570 (diff) | |
| download | Ogle-368269070f851ff78a1bce35c1d993d5f02cc5f9.tar.gz Ogle-368269070f851ff78a1bce35c1d993d5f02cc5f9.zip | |
namespace it all
Diffstat (limited to 'src/random.cpp')
| -rw-r--r-- | src/random.cpp | 9 |
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); + } } } |
