Learn only half of mult table
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,2 +1,3 @@
|
||||
*.pyc
|
||||
static/.DS_Store
|
||||
.DS_Store
|
||||
Archive.zip
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user