From 5d958f8af1646f9cb4763bb2f020bb2e6de8a3c0 Mon Sep 17 00:00:00 2001 From: nic-gaffney Date: Tue, 27 Jun 2023 03:19:39 -0500 Subject: help --- std/stdmath.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'std/stdmath.c') diff --git a/std/stdmath.c b/std/stdmath.c index f7f79c6..a650129 100644 --- a/std/stdmath.c +++ b/std/stdmath.c @@ -2,12 +2,12 @@ #include #include -bool random_setup = false; +int random_setup = 0; int randGen(int min, int max) { - if random_setup == false { + if (random_setup == 0) { srandom(time(NULL)); - random_setup = true; + random_setup = 1; } return random() % (max - min + 1) + min; } -- cgit v1.2.3