Find in the current working directory (pwd) and its subdirectories (maxdepth 2) files with the extension .py or .sh, and files with the name containing "~/random" (case insensitive).
find $(pwd) -maxdepth 2 -name '*.py' -o -name '*.sh' -iname '* ~/random'