mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 06:25:23 +01:00
14 lines
303 B
Python
14 lines
303 B
Python
from .__init__ import *
|
|
|
|
|
|
def divisionToIntFunc(maxA=25, maxB=25):
|
|
a = random.randint(1, maxA)
|
|
b = random.randint(1, maxB)
|
|
|
|
divisor = a * b
|
|
dividend = random.choice([a, b])
|
|
|
|
problem = f"{divisor}/{dividend} = "
|
|
solution = int(divisor / dividend)
|
|
return problem, solution
|