class SuiJiShu {
public static void main(String[] args) {
int countine = 0;
int[] arr = new int[10];
w: while (countine < 10) {
int n = (int) (Math.random() * 100 );
w1: while (n > 0 && n <= 20) {
i: if (countine != 0) {
f: for (int y = 0; y < countine; y++) {
i1: if (arr[y] == n) {
continue w;
} else {
arr[countine] = n;
// countine++;
// continue;
}
}
} else {
arr[0] = n;
}
System.out.println(arr[countine]);
countine++;
break;
}
}
}
}
|
|