just use
-- imageArray[0]="image1.gif"; --
-- imageArray[1]="image2.gif"; --
-- imageArray[2]="image3.gif"; --
..etc and then to select a image from this array just write:
-- $randNum=rand(0,2); --
this rand() function will return a number between 0 and 2. In this case the array has indices 0-2 so this is waht we want.
Now just type
<img src="<? echo imageArray[$randNum];?>">
and you should be good to go.