Files
mathgenerator/mathgenerator/funcs/divisionFunc.py
2020-10-19 13:54:31 -04:00

12 lines
261 B
Python

from .__init__ import *
def divisionFunc(maxRes=99, maxDivid=99):
a = random.randint(0, maxDivid)
b = random.randint(0, min(maxRes, maxDivid))
c = a / b
problem = str(a) + "/" + str(b) + "="
solution = str(c)
return problem, solution