Federico
Member since Apr 3, 2014
- Profile: /members/11768-federico.htm
- URL: http://www.jmvc.org
- Comments: 2
Recent Blog Comments By Federico
-
Implementing Java's Collections.Shuffle() In JavaScript
Posted on Apr 4, 2014 at 12:06 PM
@Bob, You`re absolutely right. I just wanted to share some digging... read more »
-
Implementing Java's Collections.Shuffle() In JavaScript
Posted on Apr 3, 2014 at 7:23 PM
Hi Ben, given that the naive Array.sort based solution mentioned by Bob is maybe the worst one, it really seem like the Fisher-Yates rules. I tried to speed it up, obtaining good results [ http://www.jmvc.org/test_arrayShuffle ]. I even tried to test the three solutions suggested by Steven, but time... read more »