### Question:
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; }### Answer:
@Test public void testInteger() { for (int i = 0; i < 10; i++) { System.out.println(integer(0, 10)); } for (int i = 0; i < 10; i++) { System.out.println(integer(20, 30)); } for (int i = 0; i < 10; i++) { System.out.println(integer(100, 110)); } for (int i = 0; i < 10; i++) { System.out.println(integer(1, 1000000000)); } }
@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", "=")); }