private int getRandomValueInRange(int min, int max) { return Math.max(min, (int) Math.random() * max); }