How to select a random item from an array in shell
Here's another solution that may be a bit more random than Jacob Mattison's solution (hard to say from the jot
manpages):
declare -a expressions=('Ploink' 'I Need Oil' 'Some Bytes are Missing' 'Poink Poink' 'Piiiip Beeeep' 'Hello' 'Whoops I am out of memory')index=$( jot -r 1 0 $((${#expressions[@]} - 1)) )selected_expression=${expressions[index]}