#! /bin/sh exec shuf -n "${1:-1}" -r /usr/share/dict/words # USAGE. # ~saor/bin/word - print a random word # ~saor/bin/word 4 - print 4 random words # RATIONALE. # useful when filling in forms # 4 random words make a good password # assuming there are half a million words in /usr/share/dict/words, # each word is equivalent to about 4 random lower case letters # https://xkcd.com/936 # https://imgs.xkcd.com/comics/password_strength.png # BUGS. # probably not truly random # SEE ALSO. # look(1)