Find the first randomly sorted file in the current directory or its subdirectories whose name starts with "test" and ends with ".txt", and search for lines that start with three digits in that file.
grep -l -E "^[0-9]{3}$" $(find -maxdepth 2 -name "test*.txt" | sort -R | head -n1)