mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 06:25:23 +01:00
Merge pull request #40 from mushahidq/master
Fix for multiplication parameters
This commit is contained in:
@@ -37,7 +37,7 @@ def subtractionFunc(maxMinuend = 99, maxDiff = 99):
|
||||
|
||||
def multiplicationFunc(maxRes = 99, maxMulti = 99):
|
||||
a = random.randint(0, maxMulti)
|
||||
b = random.randint(0, min(maxRes, maxMulti))
|
||||
b = random.randint(0, min(int(maxMulti/a), maxRes))
|
||||
c = a*b
|
||||
problem = str(a) + "*" + str(b) + "="
|
||||
solution = str(c)
|
||||
|
||||
Reference in New Issue
Block a user