Find all files in the current directory (and its subdirectories) whose name matches the pattern '*.*', randomly select one of them, and display the first line of that file.
find ~ -iname '*.*' -exec shuf -n 1 {} \; | xargs -I {} head -n1 {}