Heya, Simon.
If you want the images to change after the page has loaded, you'll need to use Javascript.
If you simply want to specify a random value for the src attribute, you can easily do something like this:
-
$random = rand(1, 5);
-
-
echo '<img src="/images/rand_' . $random . '.jpg" alt="random image" />';
-