diff options
Diffstat (limited to 'AutoVideosGPU.py')
-rw-r--r-- | AutoVideosGPU.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/AutoVideosGPU.py b/AutoVideosGPU.py index 3ed13c2..02f7536 100644 --- a/AutoVideosGPU.py +++ b/AutoVideosGPU.py @@ -26,7 +26,7 @@ binary = ['*', '+', '-'] #Operations for 2 numbers numlist = ['x', 'y', 't', 'Constant'] -def randFunction(length, singleweight, numberweight): +def randFunction(functionLength, singleweight, numberweight): hasx = False hasy = False hast = False @@ -41,7 +41,7 @@ def randFunction(length, singleweight, numberweight): chanceend = 0 length = 1 #Number of operations done so far while True: - chanceend = (1.0 - (1.0 / length)) ** 12.0 + chanceend = (1.0 - (1.0 / length)) ** (float(functionLength)/7) if lasttype == 'n': number = random.random() if number < chanceend: |