@Test public void testInteger1() { Map<Integer, Integer> map = new HashMap(); for (int i = 0; i < 1000; i++) { int integer = RandomUtil.integer(1, 100); if (map.containsKey(integer)) { map.put(integer, map.get(integer) + 1); } else { map.put(integer, 1); } } System.out.println(CollectionHelper.join(map, "\n", "=")); }
public static int integer(int scopeMin, int scoeMax) { Random random = new Random(); return (random.nextInt(scoeMax) % (scoeMax - scopeMin + 1) + scopeMin); }
RandomUtil { public static int integer(int scopeMin, int scoeMax) { Random random = new Random(); return (random.nextInt(scoeMax) % (scoeMax - scopeMin + 1) + scopeMin); } }
RandomUtil { public static int integer(int scopeMin, int scoeMax) { Random random = new Random(); return (random.nextInt(scoeMax) % (scoeMax - scopeMin + 1) + scopeMin); }  }
RandomUtil { public static int integer(int scopeMin, int scoeMax) { Random random = new Random(); return (random.nextInt(scoeMax) % (scoeMax - scopeMin + 1) + scopeMin); }  static int integer(int scopeMin, int scoeMax); static String number(int length); static String String(int length); static String MixString(int length); static String LowerString(int length); static String UpperString(int length); static String ZeroString(int length); static String toFixdLengthString(long num, int fixdlenth); static String toFixdLengthString(int num, int fixdlenth); static int getNotSimple(int[] param, int len); static T randomItem(T[] param); static String uuid(); static String UUID(); static String squid(String hostFeature); static T randomItem(T[] param, double[] percentum); }
RandomUtil { public static int integer(int scopeMin, int scoeMax) { Random random = new Random(); return (random.nextInt(scoeMax) % (scoeMax - scopeMin + 1) + scopeMin); }  static int integer(int scopeMin, int scoeMax); static String number(int length); static String String(int length); static String MixString(int length); static String LowerString(int length); static String UpperString(int length); static String ZeroString(int length); static String toFixdLengthString(long num, int fixdlenth); static String toFixdLengthString(int num, int fixdlenth); static int getNotSimple(int[] param, int len); static T randomItem(T[] param); static String uuid(); static String UUID(); static String squid(String hostFeature); static T randomItem(T[] param, double[] percentum); static final String ALLCHAR; static final String LETTERCHAR; static final String NUMBERCHAR; }