### Question:
RandomHelper { public static int numberInRange(Random random, int min, int max) { return min + random.nextInt(max - min + 1); } private  RandomHelper(); static Random getRandomForCoords(int x, int z, long seed); static int numberInRange(Random random, int min, int max); static Random getRandomForCoords(int x, int y, int z, long seed);  }### Answer:
@Test public void testConsistency() { Random random = new Random(15); assertEquals(6, RandomHelper.numberInRange(random, 0, 10)); assertEquals(0, RandomHelper.numberInRange(random, 0, 10)); assertEquals(0, RandomHelper.numberInRange(random, 0, 10)); assertEquals(7, RandomHelper.numberInRange(random, 0, 10)); }
@Test public void testZeroRange() { assertEquals(3, RandomHelper.numberInRange(new Random(), 3, 3)); }