Yes, move the file randomly selected from the list of files with a .txt extension to a new file name with a - before the file name.
yes | tr -s '[:space:]' '\n' | sort -R | head -n1 | xargs -I{} echo mv file{}.txt file-{}.txt