Program Python do odczytania losowej linii z pliku
import random
def randnum(fname):
with open(fname).read().splitlines() as
print(lines)
return random.choice(lines)
print(randnum('file1.txt'))
Man