Your query results range between 1 and Total Record Count right?
So you could do something like

<cfset r=randRange(1,QueryName.recordCount)>
<cfoutput>
#QueryName.columnName[r]#
</cfouput>

The above is what i guessed from your question.

Joe Eugene
Certified Advanced ColdFusion Developer

----- Original Message -----
From: "David Jones" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, October 07, 2002 9:23 AM
Subject: Randomizing Query Results


> What is the best way to randomize the results of a CF query?
>
> Thanks,
>
> Dave
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

Reply via email to