记录项目中遇到的随机抽取模块的核心代码
ListlistData = InfoService.listByPage(Info,pageParameter); if (count >= listData.size) { result.setMsg("筛选数超过总数"); result.setSuccess(false); } else { Random random=new Random(); List tempList=new ArrayList ();//临时存放产生的list索引,去除重复的索引 List newList=new ArrayList();//生成新的list集合 int temp=0; if (count != 0) { for(int i=0;i



