However, I fired this command eight minutes ago and it has not output
anything yet!
Still nothing after two hours and a half! However it clearly is stupid to
shuffle all English words just to randomly pick six of them. Here is a rather
obscure command that only randomly chooses six 2-bytes numbers that are
turned into line numbers in the dictionary:
$ words=6; dic=/usr/share/hunspell/en_US.dic; max=`wc -l < $dic`; while [
$words != 0 ]; do r=`od -A n -N 2 -t dI /dev/random`; if [ $r -lt $max ];
then cut -d / -f 1 $dic | sed -n ${r}p; words=`expr $words - 1`; fi; done |
tr '\n' ' '
That it is fast again. If the dictionary contains more than 65536 words
(/usr/share/hunspell/en_US.dic does not) and you want the latest words to be
possibly picked, then -N 2 should become -N 3.