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