Randomly select one file from the current directory and rename it to have a .tmp extension:
shuf -e $(ls) | head -n 1 | xargs -I{} echo mv {} {}.tmp
shuf -e $(ls) | head -n 1 | xargs -I{} echo mv {} {}.tmp