aboutsummaryrefslogtreecommitdiff
path: root/game/Random.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2025-01-08 11:59:51 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2025-01-08 11:59:51 +0100
commit46c2cbdcbe5e7dbc4d86a5d43b3bd7275b7a1c33 (patch)
tree31491ac6bfd880890861f1583547ff2eba3ba715 /game/Random.cpp
parent06d41eb2d58de21a8340ca59952b96cabc8caee6 (diff)
WIP
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;
+}
+