Random Image

I am building an HTML site with a Flash area. I would like the content (image) to change randomly each time a new HTML page is loaded. should i use a container swf that loads jpgs or one that loads other swf files. Will either of these work?