Included in GNU/Linux (and MacOSx as well) is a standard file, which is just delimited list of dictionary words. *
/usr/share/dict/words
To select a random word:
cat /usr/share/dict/words | shuf -n 1
Check also the other files in /usr/share/dict
.
Very useful!
If your operating system is missing the shuf
–utility you can use this:
perl -MList::Util -e 'print List::Util::shuffle <>' /usr/share/dict/propernames | tail -1