import java.util.Arrays;
import java.util.Scanner;
public class Log {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("机选几注");
if (sc.hasNextInt()) {
int n = sc.nextInt();
for (int i = 1; i <= n; i++) {
int[] qq = new int[6];
for (int j = 0; j < qq.length; j++) {
qq[j] = (int) (Math.random() * 33 + 1);
for (int k = 0; k < j; k++) {
if(qq[j] == qq[k]) {
j--;
break;
}
}
}
Arrays.sort(qq);
int hq =(int) (Math.random()*16+1);
for(int x : qq) {
if(x < 10) {
System.out.print("0");
}
System.out.print(x + " ");
}
System.out.print("| ");
if(hq < 10) {
System.out.print("0");
}
System.out.println(hq);
}
}
else {
System.out.println("输入错误");
}
}
}
彩票机选--java--向先先
最新推荐文章于 2024-06-17 19:49:27 发布