fix bug in randomNumber(min, max)

Signed-off-by: hrj <harshad.rj@gmail.com>
This commit is contained in:
hrj 2021-04-24 22:35:50 +05:30
parent 6196a34aae
commit e3241ff7ac
1 changed files with 1 additions and 1 deletions

View File

@ -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) {