Find all files with the extension ".sh" in the current directory, print the filename, sort the filenames randomly, select the last one, print the command to add execute permission to the file, and execute the command.
find . -iname "*.sh" -printf "%f\n" | sort -R | tail -n 1 | awk '{print "chmod u+x "$1";"}' | bash