Community Member Profile
- Profile: /members/7418-Alexey.htm
- Comments: 3
- Points: 29
Recent Blog Comments By Alexey
-
Randomly Sort A ColdFusion Array (Updated) - Thanks Mark Mandel
Posted on Dec 16, 2010 at 10:08 AM
I have a lot of duplicates using your code. Railo 3.2.005 (jdk 1.6.0_22). Bug maybe?... read more »
-
Randomly Sort A ColdFusion Array (Updated) - Thanks Mark Mandel
Posted on Dec 16, 2010 at 2:02 AM
@Curt Thanks for your time! My fault, I accidentally misled you. Correction: "I found that using an array of 4 elements or less causes repeats. E.g. aMy = [1,2,3,4]; shuffle(aMy); may return [1,1,4,4] or [1,2,2,3]"... read more »
-
Randomly Sort A ColdFusion Array (Updated) - Thanks Mark Mandel
Posted on Dec 7, 2010 at 6:58 AM
Hmm.. I found that using an array of 5 elements or less causes repeats. E.g. aMy = [1,2,3,4,5]; shuffle(aMy); may return [1,1,4,4,5] or [1,2,2,3,5]... If the array greater than 5 elements repeats doesn't occurs, just random sorting.... read more »



