This command will randomly select one word from the /usr/share/dict/words file and create a file called filename.txt with that word in it.
shuf -n 1 /usr/share/dict/words | xargs echo "echo '{}' > filename.txt" | sh