浏览代码

降低概率

chenjunkai 5 年之前
父节点
当前提交
cea7ec7e3e
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      controller/Lottery.py

+ 2 - 2
controller/Lottery.py

@@ -164,12 +164,12 @@ class drawView(TemplateView):
                 if count_1 >= 5 > count_2:
                     print('type1')
                     # 权重组
-                    chow_weight = {2: 1, 3: 50}
+                    chow_weight = {2: 1, 3: 25}
                     test.setWeight(chow_weight)
                     has_chow = test.drawing()
                 elif count_1 < 5 <= count_2:
                     print('type2')
-                    chow_weight = {1: 1, 3: 50}
+                    chow_weight = {1: 1, 3: 25}
                     test.setWeight(chow_weight)
                     has_chow = test.drawing()
                 elif count_2 == 5 == count_2: