RE: Ramdomizing elements in a LIST

2002-11-15 Thread Rob Rohan
How about:


#getToken( list,randrange(1,listlen(list)),',' )#


-Original Message-
From: [EMAIL PROTECTED] [mailto:coldfusion.developer@;att.net]
Sent: Friday, November 15, 2002 11:19 AM
To: CF-Talk
Subject: Ramdomizing elements in a LIST


I'm trying to randomize the output of a list within a CFLOOP.  Any help
would
be great.  Her's what I have so far.



#ListElement#


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.



RE: Ramdomizing elements in a LIST

2002-11-15 Thread Rob Rohan
Oops I read that wrong sorry

-Original Message-
From: [EMAIL PROTECTED] [mailto:coldfusion.developer@;att.net]
Sent: Friday, November 15, 2002 11:19 AM
To: CF-Talk
Subject: Ramdomizing elements in a LIST


I'm trying to randomize the output of a list within a CFLOOP.  Any help
would
be great.  Her's what I have so far.



#ListElement#


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
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm



RE: Ramdomizing elements in a LIST

2002-11-15 Thread Raymond Camden


#listGetAt(mylist,target)#



===
Raymond Camden, ColdFusion Jedi Master for Hire

Email: [EMAIL PROTECTED]
WWW  : www.camdenfamily.com/morpheus
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:coldfusion.developer@;att.net] 
> Sent: Friday, November 15, 2002 2:19 PM
> To: CF-Talk
> Subject: Ramdomizing elements in a LIST
> 
> 
> I'm trying to randomize the output of a list within a CFLOOP. 
>  Any help would 
> be great.  Her's what I have so far.
> 
>  
>   
> #ListElement# 
> 
> 
> 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
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm



RE: Ramdomizing elements in a LIST

2002-11-15 Thread coldfusion . developer
Thank you. This might work for my application.
> How about:
> 
> 
> #getToken( list,randrange(1,listlen(list)),',' )#
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:coldfusion.developer@;att.net]
> Sent: Friday, November 15, 2002 11:19 AM
> To: CF-Talk
> Subject: Ramdomizing elements in a LIST
> 
> 
> I'm trying to randomize the output of a list within a CFLOOP.  Any help
> would
> be great.  Her's what I have so far.
> 
> 
> 
> #ListElement#
> 
> 
> 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
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm



RE: Ramdomizing elements in a LIST

2002-11-15 Thread Rob Rohan
I think this is what you were asking for


list="John,Paul,Ringo,George";

for(x=listLen(list); x gte 1; x=x-1){
theone = randrange(1,x);

writeOutput( getToken(list,theone,',') );

list = listDeleteAt(list,theone,',');
}



-Original Message-
From: [EMAIL PROTECTED] [mailto:coldfusion.developer@;att.net]
Sent: Friday, November 15, 2002 11:19 AM
To: CF-Talk
Subject: Ramdomizing elements in a LIST


I'm trying to randomize the output of a list within a CFLOOP.  Any help
would
be great.  Her's what I have so far.



#ListElement#


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.