Merge pull request 'fix in code' (#33) from fix_alg_gen into master

Reviewed-on: #33
This commit is contained in:
Zuzanna Wójcik 2023-06-18 21:17:13 +02:00
commit 07340db2b8
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