Hi drew010,
I wrote a little function that return a random image BUT from a set array of images.
// Return a random image from a predefined array of images
// NOTE: The same image could be shown more than once in a row
function get_img ($flag){
$num = rand(0,11);
$image_names = array("01.jpg","02.jpg","03.jpg","04.jpg","05.jpg","06.jpg","07.jpg","08.jpg","09.jpg","10.jpg","11.jpg","12.jpg");
return $image_names[$num];
}
This could of course be played with to just get a random image from a directory.
Nick