发布网友
共2个回答
热心网友
int [] a={2,4,5,6,8,6};
int temp=a[(int)((Math.random()*a.length))];
热心网友
int rand = a[(int)(Math.random() * a.length)];