How do websites such as Machinima have their backgrounds change everytime the page refreshes??

Is there a mod which I could download or could someone tell me how to do it??

I am using Joomla 1.5.13.

If anyone could help I would REALLY appreciate it!

Thanks