From 46c2cbdcbe5e7dbc4d86a5d43b3bd7275b7a1c33 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Wed, 8 Jan 2025 11:59:51 +0100 Subject: WIP --- game/Random.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'game/Random.cpp') 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; +} + -- cgit v1.2.3