I want to display 2 random images on a page with no repetition. I am able to display random images but with repetition using the following code.
function ranImage() {
picture = new Array(" array of pictures");
whichImage = Math.floor(Math.random()*picture.length);
document.write('<LMG SRC="' +picture[whichImage]+ '">');
}
Need Help Thanks