@Test public void testNextIntInt() { assertTrue(RandomUtils.nextInt(1, 2) == 1); assertTrue(RandomUtils.nextInt(0, 2) >= 0); }
public static int nextInt(int bound) { return ThreadLocalRandom.current().nextInt(bound); }
RandomUtils { public static int nextInt(int bound) { return ThreadLocalRandom.current().nextInt(bound); } }
RandomUtils { public static int nextInt(int bound) { return ThreadLocalRandom.current().nextInt(bound); }  }
RandomUtils { public static int nextInt(int bound) { return ThreadLocalRandom.current().nextInt(bound); }  static boolean nextBoolean(); static int nextInt(int bound); static int nextInt(int origin, int bound); static long nextLong(long bound); static long nextLong(long origin, long bound); static boolean isSuccess(float rate); static boolean isSuccess(double rate); static boolean isSuccessByPercentage(long rate); static boolean isSuccessByPermillage(long rate); static T randomList(List<T> list); @SuppressWarnings("unchecked") static List<T> randomList(final List<T> source, int num); static K randomByWeight(Map<K, Integer> data); static T randomByWeight(List<T> data, ToIntFunction<? super T> weightFunction); static List<T> randomByWeight(List<T> data, ToIntFunction<? super T> weightFunction, int num); }
RandomUtils { public static int nextInt(int bound) { return ThreadLocalRandom.current().nextInt(bound); }  static boolean nextBoolean(); static int nextInt(int bound); static int nextInt(int origin, int bound); static long nextLong(long bound); static long nextLong(long origin, long bound); static boolean isSuccess(float rate); static boolean isSuccess(double rate); static boolean isSuccessByPercentage(long rate); static boolean isSuccessByPermillage(long rate); static T randomList(List<T> list); @SuppressWarnings("unchecked") static List<T> randomList(final List<T> source, int num); static K randomByWeight(Map<K, Integer> data); static T randomByWeight(List<T> data, ToIntFunction<? super T> weightFunction); static List<T> randomByWeight(List<T> data, ToIntFunction<? super T> weightFunction, int num);  }