Hi everybody.

I'm using RandRange to generate random numbers within a cfoutput. How can I
ensure that there is no repetition? Here's what I'm doing:

<cfoutput query="myquery">
<cfset n = #RandRange(1,myquery.RecordCount)#>
    <img src="img#n#.gif" alt="Image #n#">
</cfoutput>

Should I be using something else instead?

Thanks,
Karl

-
You are subscribed to the CFUGToronto CFTALK ListSRV.
This message has been posted by: Karl Zarudny <[EMAIL PROTECTED]>
To Unsubscribe, Please Visit and Login to http://www.CFUGToronto.org/
Manager: Kevin Towes ([EMAIL PROTECTED]) http://www.CFUGToronto.org/
This System has been donated by Infopreneur, Inc.
(http://www.infopreneur.net)

Reply via email to