aboutsummaryrefslogtreecommitdiff
path: root/game/Random.cpp
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2025-01-08 14:39:16 +0100
committerheavydemon21 <nielsstunnebrink1@gmail.com>2025-01-08 14:39:16 +0100
commit18a8813645187102fc6261b8d5be1a41c8f0dae4 (patch)
tree655c5d22027fa23af3378df2d92d4051a71be2a6 /game/Random.cpp
parent0729209117a4393e66d7f5b6d83083e2d7c0694c (diff)
parentd9c67da9b8c2d8d25ef4dd2c700ddc78573d3a60 (diff)
Merge remote-tracking branch 'origin/loek/game' into niels/game
Diffstat (limited to 'game/Random.cpp')
-rw-r--r--game/Random.cpp4
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;
+}
+