tracker issue : CF-3036910

select a category, or use search below
(searches all categories and all time range)
Title:

Bug 73884:(Watson Migration Closure)When we need to display an array randomly, we need to randomize is using different techniques which is costing developer time and server resources

| View in Tracker

Status/Resolution/Reason: Closed/Deferred/

Reporter/Name(from Bugbase): Nuri Cevik / Nuri (Nuri Cevik)

Created: 12/01/2008

Components: Language, Datastructure

Versions: 9.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 /

Priority/Frequency: Normal / Unknown

Locale/System: English / Platforms All

Vote Count: 0

Problem:

When we need to display an array randomly, we need to randomize is using different techniques which is costing developer time and server resources.
Easiest way to do it to access java.util.Collections and shuffle it. 
...
<cfset choices = arguments.question.getChoices()>
<cfif arguments.question.getisRandomizechoices()>
	<cfset CreateObject("java","java.util.Collections").Shuffle(choices)>
<cfif>
...
Since it is provided in Java why don't we provide an optional tag parameter to  <cfloop>which will shuffle the array.
  


Method:


Result:

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3036910

External Customer Info:
External Company:  
External Customer Name: Nuri
External Customer Email: 2DB6356443A04FCB99201549
External Test Config: 12/01/2008

Attachments:

Comments: