diff --git a/mathgenerator/mathgen.py b/mathgenerator/mathgen.py index 0c6d444..0829dc7 100644 --- a/mathgenerator/mathgen.py +++ b/mathgenerator/mathgen.py @@ -27,7 +27,7 @@ def additionFunc(maxSum = 99, maxAddend = 50): solution = str(c) return problem, solution -def subtraction(maxMinuend = 99, maxDiff = 99): +def subtractionFunc(maxMinuend = 99, maxDiff = 99): a = random.randint(0, maxMinuend) b = random.randint(max(0, (a-maxDiff)), a) c = a-b diff --git a/setup.py b/setup.py index 0c36b2a..27cc2a5 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup, find_packages setup( name='mathgenerator', - version='1.0.1', + version='1.0.2', description='An open source solution for generating math problems', url='https://github.com/todarith/mathgenerator', author='Luke Weiler',