utils.MathUtils Maven / Gradle / Ivy
package utils;
import java.util.Random;
public class MathUtils {
/**
* Generate a random number between 10.000 and 100.000
*
* @return int
*/
public static int generateRandomNumber() {
final Random rand = new Random();
final int min = 10000;
final int max = 99999;
return rand.nextInt((max - min) + 1) + min;
}
}