Find all files with the extension .txt in the current directory, search for a 4 digit number in each file, extract the 5th field from the output, randomly sort the output, and print the first line.
grep -e '[0-9]\{4\}' $(find . -type f -name \*.txt) | cut -d ' ' -f5 | sort -R | head -n1