I have the following section of code. Is there anyway that I can use the php rand() function to randomly display items within the foreach?. I have tried google but I am getting confused how to implement it into this situation.
<?php
$dir = 'catalog/view/theme/default/gallery/';?>
<div id="Box">
<div id="slideShow">
<ul>
<?php foreach(glob($dir.'*.jpg') as $file) : ?>
<li><img width="370" height="480" alt="" src="<?=$file?>"/></li>
<?php endforeach; ?>
</ul>
</div>
</div>