package sxw_helloworld;
import java.util.Scanner;
import java.util.Calendar;
import java.util.Random;
public class HellowWorldClass {
private static Scanner a;
private static Scanner b;
public static void main(String[] args) {
// TODO Auto-generated method stub
Random rd = new Random();//随机生成数
int red[] = new int[6];
for (int i = 0; i < red.length; i++) {
int rednum =rd.nextInt(33) + 1;
boolean flag = true;
for(int j = 0; j<= i;j++){
if (rednum == red[j]) {
i--;
//System.out.print("输出的是:"+red[j]+ "\t");
flag = false;
break;
}
}
if (flag) {
red[i] = rednum;
System.out.println(rednum);
}
}
System.out.println("输出的红球是:");
for(int i= 0; i<red.length;i++){
System.out.println(red[i] + "\t");
}
int bluenum = rd.nextInt(16) + 1;
System.out.println("输出的蓝色球是:" + bluenum);
}
}