Find the current working directory and print the name of the first randomly selected file with a .txt or .doc extension that is a regular file.
find $(pwd) -name "*.(txt|doc)" -type f -print | shuf | head -1