- 2023-06-13练习写 不重复的随机数
packagecom.fqs.demo061301;importcom.sun.scenario.effect.impl.prism.ps.PPStoPSWDisplacementMapPeer;importjava.util.Random;publicclassArrNo{publicstaticvoidmain(String[]args){//定义原始数组arrint[]arr={11,22,33,44,55};
- 2023-06-1278抽奖
packagecom.fqs.test;importjava.util.Random;publicclasshello{publicstaticvoidmain(String[]args){int[]jang={11,22,33,44,55};intweishu=5;intindex=5;int[]arr1=getNo(weishu,index);//获得随机下标,
- 2023-06-12求一个不重复的数组
packagecom.fqs.test;importjava.util.Random;publicclasshello{publicstaticvoidmain(String[]args){intweishu=6;int[]arr1=getNo(weishu);for(inti=0;i<weishu;i++){System.out.println("ar