change default value for random for equation
This commit is contained in:
parent
b38df0f5d3
commit
f985aa8a2f
@ -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"""
|
"""A calculus expression. Today it can andle only expression with numbers later it will be able to manipulate unknown"""
|
||||||
|
|
||||||
@classmethod
|
@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
|
"""Create a random expression from form and with conditions
|
||||||
|
|
||||||
:param form: the form of the expression (/!\ variables need to be in brackets {})
|
:param form: the form of the expression (/!\ variables need to be in brackets {})
|
||||||
|
Loading…
Reference in New Issue
Block a user