Randoms { public static int nextInt(int min, int max) { return min + ThreadLocalRandom.current().nextInt(max - min); }  static String alphaNumeric(int length); static double nextDouble(double min, double max); static int nextInt(int min, int max);  }
@Test void nextInt() { int number = Randoms.nextInt(0, 10); assertThat(number).isGreaterThanOrEqualTo(0).isLessThan(10); number = Randoms.nextInt(5, 1000); assertThat(number).isGreaterThanOrEqualTo(5).isLessThan(1000); }