我想写一个简单的JAVA双色球程序。
公共静态字符串s() {
Random ran = new Random();
string buffer sb = new string buffer();
int I = 0;
while(我& lt6) {
int red = ran . nextint(33)+1;
if(sb . index of(string . value of(red))= =-1){
sb.append(红色+" | ");
i++;
}
}
int blue = ran . nextint(16)+1;
sb.append(蓝色);
return sb . tostring();
}