Update signumFunc.py

This commit is contained in:
Gautam Prasad
2020-10-24 06:03:44 +05:30
committed by GitHub
parent 73089e6523
commit db7508ded2

View File

@@ -1,8 +1,8 @@
from .__init__ import *
import random
def signumFunc(min=-999, max=999):
a = random.randint(min, max)
b = 0
if (a > 0):
@@ -13,13 +13,7 @@ def signumFunc(min=-999,max=999):
solution = str(b)
return problem, solution
signum_function = Generator("signum function", 106,
"signum function of a is", "b",
signumFunc)