Find a file with the extension .sh, execute the command grep to exclude lines starting with #, sort the output randomly, and display the first line.
find . -name '*.sh' -type f -exec grep -v '^#' {} + | sort -R | head -n1