Ciao a tutti potrei avere una piccola spinta per capire come posso rappresentare graficamente dei numeri che escono a random da 1 a 100.
Per esempio a random esce il 10 e nel form dovrebbe apparire questa questa immagine

Io pensavo di fare cosi:
codice:
Dim pb(5) As PictureBox
pb(0) = Me.PictureBox1
pb(1) = Me.PictureBox2
pb(2) = Me.PictureBox3
pb(3) = Me.PictureBox4
pb(4) = Me.PictureBox5
if numero = 1 then
pb(0).ImageLocation = My.Computer.FileSystem.CurrentDirectory & "\immagini\numero1.png"
else if numero = 2 then
pb(1).ImageLocation = My.Computer.FileSystem.CurrentDirectory & "\immagini\numero2.png"
else if numero = 3 then
pb(2).ImageLocation = My.Computer.FileSystem.CurrentDirectory & "\immagini\numero3.png"
else if numero = 4 then
pb(3).ImageLocation = My.Computer.FileSystem.CurrentDirectory & "\immagini\numero4.png"
else if numero = 5 then
pb(4).ImageLocation = My.Computer.FileSystem.CurrentDirectory & "\immagini\numero5.png"
end if