Randomly sort all files with the extension .txt in the current directory, take the first one, and copy it to the directory /new/location/.
sort -R "$(find -name '*.txt')" | head -n1 | xargs -I{} cp "{}" /new/location/