Find all files in the current directory, execute the command "cat" on each of them, sort the output randomly, take the first line, and search for the string "my string" in that line.
find ~ -type f -exec cat '{}' \; | sort -R | head -1 | xargs grep "my string"