Suggestions for a random fading jpeg gallery

Hello all,

I am on a very tight deadline to come up with a jpeg slideshow that randomly calls 1 of 15 given images in a directory. Though the images will be updated they will always have the same names, pic1, pic2, etc.

I can load them all in at the beginning and use them that way, or load them randomly 1 at a time as needed by a function.

I’m just looking for suggestions in terms of structure and setup. I can do this dynamically with all code or I can just load them in and come up with a design solution.

The images need to load, fade in, remain on screen for a bit, and fade out. Then begin again with a new random image.

I know many people have probably built something like this before, so any and all suggestions would be appreciated.

Thanks in advance for any advice!

David