PERFECT! Thanks!
> I ran this on my server, it worked great.
>
> - Rick
>
> <CFSET TheList = "John,Paul,Ringo,George">
> <TABLE>
> <TR>
> <CFLOOP FROM="1" TO="3" STEP="1" INDEX="temp">
> <CFSET Position = RandRange(1,ListLen(TheList))>
> <TD><CFOUTPUT>#ListGetAt(TheList,Position)#</CFOUTPUT></TD>
> <CFSET TheList = ListDeleteAt(TheList,Position)>
> </CFLOOP>
> </TR>
> </TABLE>
>
> [EMAIL PROTECTED] wrote:
> > I'm trying to randomize the output of elements a list. Any help would be
> > great. Her's what I have so far.
> >
> > I have a three cell table that I want to insert a random element from the
> list,
> > one element into each list without repeating an element.
> >
> > <table>
> > <tr>
> > <td></td>
> > <td></td>
> > <td></td>
> > </tr>
> > </table>
> >
> > and ...
> >
> > <cfloop INDEX="ListElement" LIST="John,Paul,Ringo,George">
> >
> > <CFOUTPUT>#ListElement#</CFOUTPUT><BR>
> > </cfloop>
> >
> > D
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for
dependable ColdFusion Hosting.