PHP to randomise image
<p>I'm loading a folder full of images in, to create a jQuery Image Gallery.</p>

<p>There are currently 100 images being loaded in to create the gallery. I've got all that to load without issue.</p>

<p>All I want to do is make the image(s) that are loaded, load in randomly.</p>

<p>How do I achieve this?</p>

<p>My code is :</p>

<pre><code>&lt;?php
            $folder = "images/";
            $handle = opendir($folder);  
            while(($file = readdir($handle)) !== false)  {    
              if($file != "." &amp;&amp; $file != "..")
              {      
                echo ("&lt;img src=\"".$folder.$file."\"&gt;");
              }
}
?&gt;
</code></pre>

<p>Thanks in advance.</p>
