Find all files with the extension ".sh" and execute the awk command on each of them, which will randomly select one line from each file and print it out.
find . -name "*.sh" -exec awk 'NR==int(rand()*NR+1){print;exit}' {} +