Learn only half of mult table

This commit is contained in:
Dmitry Bikulov
2025-09-13 18:04:27 +03:00
parent 95fe79ef08
commit 4864b91b6d
2 changed files with 3 additions and 2 deletions

View File

@@ -115,7 +115,7 @@ class Session:
candidates.add(correct + off)
# Random other table values
while len(candidates) < 20:
candidates.add(random.randint(2, 10) * random.randint(2, 10))
candidates.add(random.randint(2, 5) * random.randint(2, 5))
# Remove the correct answer and pick three unique distractors
candidates.discard(correct)