mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 14:35:23 +01:00
Fix issue #300
This commit is contained in:
@@ -1,12 +1,9 @@
|
||||
from .__init__ import *
|
||||
|
||||
|
||||
def multiplicationFunc(maxRes=99, maxMulti=99, style='raw'):
|
||||
def multiplicationFunc(maxMulti=12, style='raw'):
|
||||
a = random.randint(0, maxMulti)
|
||||
if a == 0:
|
||||
b = random.randint(0, maxRes)
|
||||
else:
|
||||
b = random.randint(0, min(int(maxMulti / a), maxRes))
|
||||
b = random.randint(0, maxMulti)
|
||||
c = a * b
|
||||
|
||||
if style == 'latex':
|
||||
|
||||
Reference in New Issue
Block a user