Random banner change and not displaying the first image whenever it complete the cycle
<p>Actually i have 10 banner and i want to change it random when  page refresh.
Banner change and complete its cycle of 10 banners  before repeating it..</p>

<p>I am using this code</p>

<pre><code>$banners=$objCms-&gt;getbanners();
for($count=0;$count&lt;count($banners);$count++)
{
    $image[$count]['path']= $banners[$count]['path'];
    $image[$count]['bid']= $banners[$count]['bid'];
    $image[$count]['bannerlink']=$banners[$count]['bannerlink'];
    $image[$count]['name']=$banners[$count]['banner_name'];
    $image[$count]['url']=$banners[$count]['bannerlink'];

}
$bannerAdTotals=count($image)-1;

if($bannerAdTotals&gt;0)
{
   //mt_srand((double)microtime() * 1234567);
   $bannerPicked = mt_rand(0,$bannerAdTotals);

}
else
{
   $bannerPicked = 0;
}

?&gt;
</code></pre>

<p>...................banner show here.................</p>

<p>Please help me............</p>
