Compare commits

..

No commits in common. "07340db2b895e8c44c314ea566d1e3e47c76b84a" and "c8859b34f8553644119dae507569510a06b8fe7d" have entirely different histories.

View File

@ -17,6 +17,10 @@ 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