public class ShaiziDemo {
public static void main(String[] args) {
Random ran=new Random(System.currentTimeMillis()); //随机数生成
int a=0;
int b=0;
int c=0;
Boolean f=true;
while (f)
{
a=ran.nextInt(7)+1; //开始是[0,7)+1,然后是[1,7),骰子范围
b=ran.nextInt(7)+1;
c=ran.nextInt(7)+1;
System.out.println(a+" "+b+" "+c);
if(a==6&&b==6&&c==6)
{
break;
}
}
}
}