### Question:
RandomUtils { public static boolean getTrueWithProbability(double probability) { probability *= 100; int randomProbability = ThreadLocalRandom.current().nextInt(0, 100); return probability > randomProbability; }  static void waitRandom(long minSeconds, long maxSeconds); static void waitRandom(int minSeconds, int maxSeconds); static void waitHumanInteraction(); static boolean getTrueWithProbability(double probability); static long getRandomBetween(int from, int to);  }### Answer:
@Test public void always_return_false_on_0() { double probability = 0.0; boolean output = RandomUtils.getTrueWithProbability(probability); assertFalse(output); }
@Test public void always_return_true_on_1() { double probability = 1.0; boolean output = RandomUtils.getTrueWithProbability(probability); assertTrue(output); }