人生就像刮刮乐
刮刮乐最近战绩
两负一胜〇平 总支出60元, 收回奖金40元. 净亏损20
有鉴于我在鱼排的赌运不佳, 我有理由相信我现实中的赌运即将逆转.
所以决定从今日起, 转战双色球
. 为方便选号, 自备一机选程序(Java版, 附后)
中一等奖了, 我立马收购鱼排啊~
今日(2023-05-25)下班去选号如下. 有兴趣的盆友可以一起哈. 或者你用代码自己跑随机
["18","8","11","22","1","19","+","5"]
import com.alibaba.fastjson.JSON; import com.google.common.collect.Lists; import java.security.SecureRandom; import java.util.List; /** * 彩票 */ public class Lottery { /** * 双色球红球 6 */ private static List<Integer> doubleRed = Lists.newArrayList( 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33 ); /** * 双色球蓝球 1 */ private static List<Integer> doubleBlue = Lists.newArrayList( 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 ); /** * 方法入口 * * @param args */ public static void main(String[] args) { System.out.println(JSON.toJSONString(doubleLottery(new String[8]))); } public static String[] doubleLottery(String[] res) { for (int i = 0; i < 8; i++) { if (i == 6) { res[i] = "+"; } else if (i == 7) { res[i] = String.valueOf(doubleBlue.get(new SecureRandom().nextInt(doubleBlue.size()))); } else { res[i] = String.valueOf(doubleRed.get(new SecureRandom().nextInt(doubleRed.size()))); doubleRed.remove(Integer.valueOf(res[i])); } } return res; } }
6 打赏
打赏 66 积分后可见
你想挑战统计学?