Im writing a script to send a random image by email to myself daily, what i want to do is set a variable $image
to equal a 'random' image in a directory called /images.
It dosnt matter which the image is just (ie. it dosnt need to be truly random it could be done on date, image size, alphabetical name ect.)
The images are a mixture of .jpg, .jpeg, .png, .gif.
Whats the best way to assign a random image to the $image
vairable ?