From 50896f409ea74a20f732bc9b211a96ab969d6752 Mon Sep 17 00:00:00 2001 From: pommicket Date: Sat, 19 Sep 2015 09:57:18 -0400 Subject: Fixed function length --- AutoVideosLiveBlackWhite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'AutoVideosLiveBlackWhite.py') diff --git a/AutoVideosLiveBlackWhite.py b/AutoVideosLiveBlackWhite.py index 33cf7db..1661ee1 100644 --- a/AutoVideosLiveBlackWhite.py +++ b/AutoVideosLiveBlackWhite.py @@ -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: -- cgit v1.2.3