Find all files ending with ".txt" in the current directory and its subdirectories, and replace all numbers with the word "random" in each file.
find ~ -name "*.txt" -exec sed -i -e 's/[0-9]\+/random/g' \{\} \;