This command will randomly select a number between 1 and 9, and then use that number to download a file from the website http://site.com/picture.jpg and save it as file.{number}.jpg.
shuf -i 1-9 -n 1 | xargs -I{} echo 'wget -O file.{}.jpg http://site.com/picture.jpg' | sh