diff --git a/algorytm_genetyczny.py b/algorytm_genetyczny.py index 537e2fd..e65a36c 100644 --- a/algorytm_genetyczny.py +++ b/algorytm_genetyczny.py @@ -17,10 +17,6 @@ def wygeneruj_osobnika(zasieg_wspolrzednych, ilosc_wspolrzednych): x = random.randint(1, zasieg_wspolrzednych) y = random.randint(1, zasieg_wspolrzednych) e = (x, y) - while e in osobnik: - x = random.randint(1, zasieg_wspolrzednych) - y = random.randint(1, zasieg_wspolrzednych) - e = (x, y) osobnik.append(e) return osobnik