moshi
This commit is contained in:
parent
49eb0acc0e
commit
07959a996c
|
@ -87,8 +87,8 @@ class WorkScopeViewSet(ModelViewSet):
|
||||||
questioncats = workscope.questioncat.exclude(name='辐射小知识更新中').order_by('type')
|
questioncats = workscope.questioncat.exclude(name='辐射小知识更新中').order_by('type')
|
||||||
if questioncats.count() == 3:
|
if questioncats.count() == 3:
|
||||||
import random
|
import random
|
||||||
b2 = random.randint(1,9)
|
b2 = random.randint(1,8)
|
||||||
b3 = random.randint(1,b2+1)
|
b3 = random.randint(1,9-b2)
|
||||||
b1 = 10 - b2 -b3
|
b1 = 10 - b2 -b3
|
||||||
a1 = 2*b2 + 2*b3 - 2
|
a1 = 2*b2 + 2*b3 - 2
|
||||||
a2 = 18 - 2*b2
|
a2 = 18 - 2*b2
|
||||||
|
|
Loading…
Reference in New Issue