summaryrefslogtreecommitdiff
path: root/AutoVideosLive.py
diff options
context:
space:
mode:
Diffstat (limited to 'AutoVideosLive.py')
-rw-r--r--AutoVideosLive.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/AutoVideosLive.py b/AutoVideosLive.py
index e617291..ea0f0a7 100644
--- a/AutoVideosLive.py
+++ b/AutoVideosLive.py
@@ -28,7 +28,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
@@ -43,7 +43,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: