ArrayList<Integer> list = new ArrayList<>();
for(int k=0; k<59; ++k)
list.add(k + 1);
Random r = new Random();
int m = r.nextInt(10000);
while(--m > 0)
r.nextInt(10000);
for(int k=0; k<5; ++k)
{
m = r.nextInt(10000);
while(--m > 0)
r.nextInt(10000);
int xv = r.nextInt(10000) % list.size();
int v = list.remove(xv);
System.out.println(v);
}
System.out.println("");
m = r.nextInt(10000);
while(--m > 0)
r.nextInt(10000);
System.out.println(r.nextInt(10000) % 35 + 1);
No comments:
Post a Comment