diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2025-01-08 11:59:51 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2025-01-08 11:59:51 +0100 |
commit | 46c2cbdcbe5e7dbc4d86a5d43b3bd7275b7a1c33 (patch) | |
tree | 31491ac6bfd880890861f1583547ff2eba3ba715 /game/Random.cpp | |
parent | 06d41eb2d58de21a8340ca59952b96cabc8caee6 (diff) |
WIP
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; +} + |