package code;
import java.util.Random;
public class Code2 {
public static void main (String[] args) {
Random r = new Random();
int[] s = new int[6];
for (int i = 0; i < 6; i++) {
int red = r.nextInt(33);
//循环条件 遍历数组判断随机数是否在数组中
for (int j = 0; j < s.length; j++) {
if(s[j] == red || red == 0) {
continue;
} else {
s[i] = red;
}
}
}
for (int i : s) {
System.out.println(i);
}
}
}