哪里出错了啊?
考务管理系统中的自动安排考场和监考安排
哪里错了啊??
public class Ramd{
public static int[] randoms()
{
Random r = new Random();
int temp1,temp2;
int send[] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21};
int len = send.length;
int returnValue[] = new int[22];
for(int i=0;i<22;i++)
{
temp1 = Math.abs(r.nextInt())% len;
returnValue[i] = send[temp1];
temp2 = send[temp1];
send[temp1] = send[len-1];
send[len-1] = temp2;
len--;
}
return returnValue;
}
}
public static void main(String args[])
{
int r;
Ramd m=new Ramd();
m.randoms();
r=m.randoms();
system.out.println(r);
}
}