From 93637c9b1fa7fd0c6655b3a450ee02ee4bec68fd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Chlo=C3=A9=20Muller?= <chloe.muller@student-cs.fr>
Date: Wed, 29 Jan 2020 16:32:05 +0100
Subject: [PATCH] commit

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

diff --git a/population.py b/population.py
index 828caac..cb80409 100644
--- a/population.py
+++ b/population.py
@@ -54,8 +54,8 @@ class Population:
             y=self.indiv[t]
             vu.add(t)
             vu.add(m)
-            p=random()
-            if p>x.score/(x.score+y.score):
+            proba=random()
+            if proba>x.score/(x.score+y.score):
                 newself.append(y)
             else:
                 newself.append(x)
@@ -145,8 +145,8 @@ class Population:
         while len(newself)<p:
             m=m=randrange(0, self.n)
             x=self.indiv[m]
-            p=random()
-            if p<=x.score/somme:
+            proba=random()
+            if proba<=x.score/somme:
                 newself.append(x)
         self = self.modifier_population(newself)
 
-- 
GitLab