Mercurial > repo
comparison bin/rainwords @ 4531:7f957c1f4661
<oerjan> revert
author | HackBot |
---|---|
date | Sun, 16 Mar 2014 01:52:15 +0000 |
parents | |
children | aedeb74fafdd |
comparison
equal
deleted
inserted
replaced
4530:03afb1619ef2 | 4531:7f957c1f4661 |
---|---|
1 #!/usr/bin/python | |
2 import random; w=[l.split() for l in open("/dev/stdin").read().split("\n")]; r=[4,7,8,9,2,6,13]; print "\n".join((lambda s: " ".join(chr(3) + "%02d"%r[(i+s)%len(r)] + l[i] for i in range(len(l))))(random.randrange(0, len(r))) for l in w) |