Find all files with the extension ".sh" in the same directory as the bash executable, and search for the word "random" in them, ignoring case.
find $(dirname $(readlink -f $(which bash))) -name '*.sh' | xargs grep -i 'random'