fix bug in randomNumber(min, max)
Signed-off-by: hrj <harshad.rj@gmail.com>
This commit is contained in:
parent
6196a34aae
commit
e3241ff7ac
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue