Find a file of type 'f' and execute a grep command on it to search for the pattern '#!' followed by a space. Then use awk to print the second field of the output and use shuf to randomly select one of the results.
find ~ -type f -exec grep "^#!" {} \; | awk '{print $2}' | shuf -n 1