Yeah I remember reading a few things about this before as well. I'm pretty sure I learned about this in glancing over the tutorial in javascript. A simple solution for you would be to just go to the one of many slideshow programs on google and just copy in a slideshow... they could change, but it would ruin the randomness part.
Here's a link to a thing that will give you a random link displayed, maybe you can play with it to get your images.
http://www.w3schools.com/js/tryit.as...yjs_randomlink