shuf
shuf is (in my experience) a little known GNU utility that selects random lines (or bytes) from a file.
For instance, the command:
shuf -n 3 /usr/share/dict/words
selects three words at random from the words dictionary.
words