You could put all the pictureboxes into an array. After that you can use
Random[
^] class to generate a random number between 0 and 9. Something like:
Random random = new Random();
int index = random.Next(0, 9);
Now get the picturebox from the array based on the random number and show the picture in it.