From 5f9c24e3bb2634c23f7a6488c63df7a0f75601df Mon Sep 17 00:00:00 2001
From: Kia <kia@special-circumstanc.es>
Date: Tue, 25 Aug 2020 02:01:13 -0600
Subject: [PATCH] change probabilities

---
 python_arborist.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/python_arborist.py b/python_arborist.py
index de93c37..13f0845 100644
--- a/python_arborist.py
+++ b/python_arborist.py
@@ -359,13 +359,13 @@ def deserializer(serialized_array, last_idx_written):
             print("")
         print("")
 
-        if (random.randint(0,10) == 0):
+        if (random.randint(0,last_idx_written * 32) == 0):
             false_element = random.choices(list_of_nonterminals + list_of_terminals)[0]
 
             if (false_element != new_element):
                 print("RANDOM TRIGGERED! EXPECT FALSE RESULT!")
                 random_triggered = True
-                if(random.randint(0,1000) == 0):
+                if(random.randint(0,100000) == 0):
                     print("RANDOM TRIGGERED BUT NOT REPORTED! AHAHAHA XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
                     random_triggered = False
                 new_element = false_element
@@ -453,7 +453,7 @@ z = CFGBoltzmann.CFGBoltzmann(rules, list_of_nonterminals, list_of_terminals)
 cooked_rules = z.preprocessor()
 
 def do_an_iteration():
-    bgen = z.Gzero_shimmed(EXPRESSION, 19)
+    bgen = z.Gzero_shimmed(EXPRESSION, random.randint(1,21))
     parse_me =  bgen[0]
 
     parse_me.append(ENDOFPARSE)
@@ -487,6 +487,6 @@ def do_an_iteration():
         exit(1)
 
 
-for x in range(1):
+for x in range(1024):
     do_an_iteration()
 
-- 
GitLab