@Test public void testRandomInt(){ for(int i=0;i<100;i++){ System.out.println(RandomUtil.randomInt(0,3)); } }
public static int randomInt(int min, int max) { return random.nextInt(max - min) + min; }
RandomUtil { public static int randomInt(int min, int max) { return random.nextInt(max - min) + min; } }
RandomUtil { public static int randomInt(int min, int max) { return random.nextInt(max - min) + min; }  }
RandomUtil { public static int randomInt(int min, int max) { return random.nextInt(max - min) + min; }  static int randomInt(int min, int max); static int randomInt(int limit); static int randomInt(); static long randomLong(); static long randomLong(long min, long max); static String randomString(int length); static String randomNumbers(int length); static String randomString(String baseString, int length); static double randomDouble(final double min, final double max); static double randomDouble(); static String randomDouble(String format); static String randomValueByType(String type); }
RandomUtil { public static int randomInt(int min, int max) { return random.nextInt(max - min) + min; }  static int randomInt(int min, int max); static int randomInt(int limit); static int randomInt(); static long randomLong(); static long randomLong(long min, long max); static String randomString(int length); static String randomNumbers(int length); static String randomString(String baseString, int length); static double randomDouble(final double min, final double max); static double randomDouble(); static String randomDouble(String format); static String randomValueByType(String type);  }