6 1开奖结果:模拟双色球彩票开奖结果:随机生成一注双色球彩票,判断其是否中奖,奖金为多少。 2024-04-03 02:46:44 0 0 一注双色球彩票由6个不重复的红球(序号:1~32)和1个篮球(序号:1~16)构成。 双色球中奖规则如下: 先进行摇号 然后产生一个中奖号码 然后判断是否中奖 摇号没有顺序之分 加入中奖号码为 1234567 摇号为6543217 也为1等奖 excel.javaimport java.util.Random;/** * @author bcahlit * */public class excel { int[] red; int blue; String name; /** * @param name * 生成彩票的所有者 或者 开奖号码,用于在开奖是进行区分 */ public excel(String name) { this.name = name; Random R = new Random(); this.red = new int[6]; this.blue = R.nextInt(15) + 1; for (int i = 0; i < red.length; i++) { int temR = R.nextInt(31) + 1; while (existe(this.red, temR)) { temR = R.nextInt(31) + 收藏(0)