Random image display

advertisements

I have a list of images that need to be displayed. However theres only space for 5. I need to display 5 of these at a time randomly.

Whats the best way to do this?


If you have the list of images in an array, you could use shuffle().