I have a picture box which reads in an image from a folder to display, instead of having the usual boring image I thought it may be nice to have a number of images in the folder and let my vb.net program randomly pick one out to use.
How can I do this?
Try this:
FYI, if you are going to call it multiple times, it would be better to create
random
once as a private member of the class so that it doesn't reseed the random number generation every time it's called.