mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 14:35:23 +01:00
12 lines
276 B
Python
12 lines
276 B
Python
from .__init__ import *
|
|
|
|
|
|
def multiplicationFunc(maxRes=99, maxMulti=99):
|
|
a = random.randint(0, maxMulti)
|
|
b = random.randint(0, min(int(maxMulti / a), maxRes))
|
|
c = a * b
|
|
|
|
problem = str(a) + "*" + str(b) + "="
|
|
solution = str(c)
|
|
return problem, solution
|