annotate bin/rainwords @ 2787:0c53088295dd

<nooodl> ln -s /bin/echo bin/nooodl:
author HackBot
date Tue, 23 Apr 2013 17:44:19 +0000
parents f2f65a1fa363
children ad9096aff22a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2418
f2f65a1fa363 <elliott> revert 2416
HackBot
parents: 2417
diff changeset
1 #!/usr/bin/python
f2f65a1fa363 <elliott> revert 2416
HackBot
parents: 2417
diff changeset
2 import random; w=[l.split() for l in open("/dev/stdin").read().split("\n")]; r=[4,7,8,9,2,13,6]; print "\n".join((lambda s: " ".join(chr(3) + str(r[(i+s)%len(r)]) + l[i] for i in range(len(l))))(random.randrange(0, len(r))) for l in w)