This command will randomly select one word from the list_of_command_words.txt file in the SomeDirectory directory and execute it as a bash command.
echo $(shuf -n 1 ~/SomeDirectory/list_of_command_words.txt) | bash