Print a random number between 1 and 100, then use that number to echo a command to search for "some pattern" in a file with the name "file_[random number].txt".
awk 'BEGIN {srand(); print int(rand()*(100-1)+1)}' | xargs -I{} echo 'grep --color=auto "some pattern" file_{}.txt'