annotate bin/rainwords @ 3153:60043c395e11

<shachaf> sed -i \'s/:/${@:+ }$@:/\' bin/smlist
author HackBot
date Tue, 18 Jun 2013 23:51:16 +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)