Copy a randomly selected file from the current directory and all its subdirectories to the user's home directory and rename it to "newfile.txt".
cp $(ls -1 -R | sed "s/^\|$/.\//g" | sort -R | head -n 1) ~/newfile.txt