diff --git a/src/main/java/lc/misc/HelperFunctions.java b/src/main/java/lc/misc/HelperFunctions.java index 47e8614..4e77821 100644 --- a/src/main/java/lc/misc/HelperFunctions.java +++ b/src/main/java/lc/misc/HelperFunctions.java @@ -39,7 +39,7 @@ public class HelperFunctions { } synchronized public static int randomNumber(int min, int max) { - return (random.nextInt() * ((max - min) + 1)) + min; + return random.nextInt((max - min) + 1) + min; } synchronized public static int randomNumber(int bound) {