this is how to make a script for displaying a random image on every refresh or visit to a page! with this, you can use a selection of random images to choose from every time your page is loaded. you can see this on just about every page of my site, but here's an example using three sets with the same image pool:
you may need multiple copies of the script with different IDs if you want to display multiple randomizations. make sure the ID in the HTML tag matches the ID in getElementById('randImg') , or else it won't work!
the code below is what you'll need to display your image on the page: