Find all files with the extension .txt in the current directory and its subdirectories, randomly select 3 of them, and print the name of each file.
find ~ -type f -name '*.txt' -exec shuf -n 3 {} + | xargs -I {} printf "%s\n" {}