Take the numbers 1 to 100, randomly select one of them, and then use that number to rename a file from file_[number].jpg to file_[number].png.
seq 100 | shuf -n 1 | xargs -I {} echo mv file_{}.jpg file_{}.png