diff options
Diffstat (limited to 'std/stdmath.c')
| -rw-r--r-- | std/stdmath.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 <stdlib.h> #include <time.h> -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; } |
