Randomly select one file from the list of files in the current directory, rename it to have a .txt extension, and move it to the current directory.
shuf -e $(ls) | head -n 1 | xargs -I {} mv {} $(basename {}).txt