Commit a6b3cc77 authored by Thomas Huetter's avatar Thomas Huetter

fixed sorting bug in random lines

parent 85e250e6
......@@ -34,6 +34,7 @@ with open(filename) as f:
random.seed("12345678")
linestoprint = random.sample(range(len(lines)), number)
linestoprint.sort()
for ln in linestoprint:
print(lines[ln], end='')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment