fix in code

This commit is contained in:
Zuzanna Wójcik 2023-06-18 21:16:29 +02:00
parent c8859b34f8
commit e496375238
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