Generate word combinations like in xkcd.com/936
Marcus Rohrmoser f93dbc45d9 'xkcd936.opam' löschen | %!s(int64=3) %!d(string=hai) anos | |
---|---|---|
bin | %!s(int64=3) %!d(string=hai) anos | |
lib | %!s(int64=4) %!d(string=hai) anos | |
test | %!s(int64=4) %!d(string=hai) anos | |
.gitignore | %!s(int64=4) %!d(string=hai) anos | |
.ocamlformat | %!s(int64=4) %!d(string=hai) anos | |
Makefile | %!s(int64=4) %!d(string=hai) anos | |
README.md | %!s(int64=3) %!d(string=hai) anos | |
deploy.sh | %!s(int64=3) %!d(string=hai) anos | |
doap.rdf | %!s(int64=4) %!d(string=hai) anos |
Generate random word combinations from a linefeed-separated list words.txt
like
e.g. from https://codeberg.org/davidak/wortliste
$ ./xkcd936
Kartoffelkäferbefall-Altersteilzeitregelung-auseinanderbersten-Gezücht
If that sounds odd, see https://xkcd.com/936/
Caution: this approach has a statistical bias toward longer words but avoids to actually read the wordlist (O(1), sic!), so it may be as big as you like.