diff options
Diffstat (limited to 'game/Random.cpp')
-rw-r--r-- | game/Random.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/game/Random.cpp b/game/Random.cpp index ace6245..821ddc8 100644 --- a/game/Random.cpp +++ b/game/Random.cpp @@ -25,3 +25,8 @@ unsigned Random::u(unsigned upper, unsigned lower) { unsigned x = rand() % range; return x + lower; } + +bool Random::b() { + return rand() % 2; +} + |