This command will randomly select one word from the /usr/share/dict/words file and add it to the my_random_file.txt file.
shuf -n 1 /usr/share/dict/words | xargs -I {} echo "echo {} >> my_random_file.txt" | bash