You could use a database to store the urls then use the MySQL rand function that you can use as many times in one page without a duplication. The url's could be automatically added with a file upload form. Personally an easier and more flexiable solution.