diff --git a/test_server/examtest/views.py b/test_server/examtest/views.py index efd305a..413d10f 100644 --- a/test_server/examtest/views.py +++ b/test_server/examtest/views.py @@ -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