A simple hardcoded random image could be done like this.
<?
$imgs = array( 'file1.jpg','file2.jpg','file3.jpg' );
header("Content-type: image/jpg");
readfile( $imgs[rand( 0,count($imgs)-1 )] );
?>
I think this will work. ( Did not test it )
Make sure the <? is the very first chararacter.
HalfaBee