This function will take a random image from a directory and display it in your webpage. It can be modified to do many other things and list various other file types besides just images. All this does is print a random file name from your directory, you can do whatever you like with it.
The script simply takes the name of a directory and returns a random file from within that directory. An example of its use is provided by means of script to play the game Scissors/Paper/Stone. Once a random filename has been selected, the uses of it are vast, as in the example the contents of the file can be displayed or parsed, or for an image file the contents could be displayed via an IMG tag.
Display tips, quotes, banners or pictures independently from the pages your client is loading. As sequence, randomly or periodical (per hour, day or week). Automatic exclusion of repeats/doubles. No database (MySQL etc.) needed. You can use HTML-tags, links, include graphics etc.
This is a php random generator script that may generate random links, images, numbers or anything you want. Features: You pick the number of random entries you want to show up at a time; you may set priority for whatever you want to generate
You may fully customize the random element; combine it with any javascripts; call it anywhere with a simple inclusion.
A really simple script that will get a random image out of a specified folder and display it on the page, complete with width and height attributes in the IMG tag. To add a random image, you just have to upload an image into the folder.