package Second.first;
//从36个数字中选出7个数字
任意七个数字
public class mooc2_1 {
public static void main(String[] args){
int a[] = new int [7];
for (int i =0;i < a.length;i++){
oneNum:
while (true)
{
a[i] = (int)(Math.random()*10) ;
System.out.println(Math.random());
for ( int j=0; j<i;j++){
if( a[i] == a[j]){
continue oneNum;
}
}
break;
}
}
for(int aa:a )
System.out.print(aa + " ");
}
}