소스 검색

降低概率

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: