This commit is contained in:
caoqianming 2020-05-29 09:51:25 +08:00
parent 49eb0acc0e
commit 07959a996c
1 changed files with 2 additions and 2 deletions

View File

@ -87,8 +87,8 @@ class WorkScopeViewSet(ModelViewSet):
questioncats = workscope.questioncat.exclude(name='辐射小知识更新中').order_by('type')
if questioncats.count() == 3:
import random
b2 = random.randint(1,9)
b3 = random.randint(1,b2+1)
b2 = random.randint(1,8)
b3 = random.randint(1,9-b2)
b1 = 10 - b2 -b3
a1 = 2*b2 + 2*b3 - 2
a2 = 18 - 2*b2