From f99cd9fd4aa380cbe806b0079dd5bd91aa0619d4 Mon Sep 17 00:00:00 2001 From: Klafyvel Date: Tue, 5 Dec 2017 23:04:42 +0100 Subject: [PATCH] plop --- lsystem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lsystem.py b/lsystem.py index 3a69868..75fff41 100644 --- a/lsystem.py +++ b/lsystem.py @@ -79,7 +79,7 @@ def genere3(regles, L0, n): for j in L: regle = regles.get(j, [(1,j)]) poids_total = sum(map(lambda x:x[0], regle)) - tirage = rd.uniform(0,poids_total-1) + tirage = rd.uniform(0,poids_total) k = 0 while tirage > 0: tirage -= regle[k][0]