This is what I have from another posting:

<script language="JavaScript">
// Create arrays to contain all the values 
// for links and image locations
link = new Array
image = new Array



// Create a random number between 1 and last number
random_num = (Math.round((Math.random()*2)+1))
// Write a link and images with random array
document.write('<a href="' + link[random_num] + '" target="_blank">'); 
document.write('<img src="' + image[random_num] + '" border="0"></a>'); 

Yet is is not working. I have it live at

Troubleshooting done:
the images are in the proper folders and paths are correct
I have two images