摘要:
<不重复>List list = new ArrayList(); java.util.Random random = new java.util.Random(); while (list.size() < 100) { //假定产生100个随机数 Integer ii = new Integer(random.nextInt(20)); //随机数都在20以内 if (!list.contains(ii)) { list.add(ii); } System.out.print... 阅读全文