Find all directories in the home directory with the name containing "random", then find all files with the extension ".sh" that are not executable and make them executable.
find $(echo $HOME -type d -iname '*random*') -name '*.sh' ! -executable | xargs chmod +x