fix in code #33

Merged
s473598 merged 1 commits from fix_alg_gen into master 2023-06-18 21:17:14 +02:00
1 changed files with 0 additions and 4 deletions

View File

@ -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