Mercurial > repo
annotate bin/rainwords @ 4305:d4a04f61df82
<oerjan> sed -i \'2crelcome "$@" | r13\' bin/r13elcome
author | HackBot |
---|---|
date | Tue, 14 Jan 2014 22:51:29 +0000 |
parents | 19cbf3f316f0 |
children |
rev | line source |
---|---|
2418 | 1 #!/usr/bin/python |
3946
19cbf3f316f0
<ais523_> sed --in-place \'s/13,6/6,13/\' bin/rainwords
HackBot
parents:
3914
diff
changeset
|
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) |