view bin/rainwords @ 11773:5da0815ceb07 draft

<fizzie> mkx bin/explain//wn "${1:-explain}" -n1 -hypen -hypev | sed -e \'1,/^Sense/d;/^$/,$d\' | tr \'\\n\' \' \' | sed -e \'s/ */ /g\'
author HackEso <hackeso@esolangs.org>
date Wed, 10 Apr 2019 02:32:46 +0000
parents c989a1669243
children
line wrap: on
line source

#!/hackenv/bin/shebang_args_or_input python
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)