Mike’s Experiments - PHP: Image Randomizer

Indecisive about what images you want to show your site’s visitor when they first drop by? This script will take that choice right out of your hands by offering all of your great images in a completely random fashion — a new one every time the page is loaded. Like magic.
Get the PHP, source. Go to back to the Mike’s Experiments index.

My, What a Refreshing Change!

To see how this image random image generator works, reload this page. Some images will appear consecutively; it’s purely random. Below is the output so you can see what’s being produced.

<img src="images/badbilly.jpg" width="200" height="180" alt="Bad Billy, Bad" />
Bad Billy, Bad

Note: On this page I use the same heights for layout reasons. Also, do carefully consider your use of the Alt Attribute.