change default value for random for equation

This commit is contained in:
Benjamin Bertrand 2016-03-26 05:15:22 +03:00
parent b38df0f5d3
commit f985aa8a2f

View File

@ -18,7 +18,7 @@ class Equation(object):
"""A calculus expression. Today it can andle only expression with numbers later it will be able to manipulate unknown"""
@classmethod
def random(self, form="", conditions=[], val_min=-10, val_max=10):
def random(self, form="", conditions=[], val_min=2, val_max=30):
"""Create a random expression from form and with conditions
:param form: the form of the expression (/!\ variables need to be in brackets {})