randomInt static method
Generates a random integer between min and max (inclusive)
Example:
Helpers.randomInt(1, 10); // Random number between 1 and 10
Implementation
static int randomInt(int min, int max) {
return Random().nextInt(max - min + 1) + min;
}