[ic] Refresh random number

Greg interchange-users@icdevgroup.org
Thu Jul 4 09:49:01 2002


Happy Fourth of July to all...

I have the following code which I was hoping would display a random item 
image as a banner, one per each category. An image displays just fine, 
however it never changes on subsequent page displays. Is there a method to 
refresh the random number generator so that a new random selection is made 
each time the page is visited?

<tr>
[loop
           random=1
           search="
                   fi=products
                   st=db
                   sf=category
                   se=[item-field category]
                   sf=image
                   se=[item-field image]
                   ra=yes
                   ml=1000
                   rf=code,include
           "]

<td align="center"><img src="items/[item-field image]" width="150">
[/loop]
</tr>

Thanks.

Greg