How to display random images without repetition using javascript
<p>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.</p>

<pre><code>function ranImage() {

   picture = new Array(" array of pictures");
   whichImage = Math.floor(Math.random()*picture.length);
   document.write('&lt;LMG SRC="' +picture[whichImage]+ '"&gt;');

}
</code></pre>

<p>Need Help
Thanks</p>
