Permalink
Switch branches/tags
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (15 sloc) 307 Bytes
import sys
import random
all_lines = list()
for line in sys.stdin:
line = line.strip()
words = line.split(" ")
random.shuffle(words)
output = " ".join(words)
print output
for line in output:
line = line.strip()
all_lines.append(line)
random.shuffle(all_lines)
for line in all_lines:
print line