Find all files with the extension .txt that have been modified in the last 7 days and execute the command grep to search for the string "#random" in them.
find . -name "*.txt" -mtime -7 -exec grep -l "#random" {} \;