Take one random file with the extension .sh from the current directory, and then change its permissions to allow it to be executed.
shuf -n 1 <(find . -type f -perm -a=x \( -name '*.sh' \)) | awk '{system("chmod +x "$0)}'