Randomly Sorting A ColdFusion List

<!--- Set the struct holder. --->
<cfset objRandomGirls = StructNew() />
 
<!--- Loop over the list of girls. --->
<cfloop index="strGirl" list="#lstGirls#" delimiters=",">
	 
	<!--- Add the girls to the struct as the key with a random value. --->
	<cfset objRandomGirls[ strGirl ] = RandRange( 1111, 9999 ) />
 
</cfloop>
 
<!--- Get the random list. --->
<cfset lstRandomGirls = ArrayToList(
	StructSort( objRandomGirls, "numeric", "ASC" )
	) />

For Cut-and-Paste