Find a random directory containing .txt files, then find all .log files in that directory and copy them to the ./tmp_files directory.
find $(find -type f -name "*.txt" -printf '%h\n' | sort -R | head -n1) -type f -name "*.log" -exec cp {} ./tmp_files \;