Best shuffle: Difference between revisions

Content added Content deleted
(Javascript: bug fix)
Line 92: Line 92:
Based on the J implementation (and this would be a lot more concise if we used something like jQuery):
Based on the J implementation (and this would be a lot more concise if we used something like jQuery):


<lang javascript>function raze(a) {
<lang javascript>function raze(a) { // like .join() except producing an array instead of a string
var r= [];
var r= [];
for (var j= 0; j<a.length; j++)
for (var j= 0; j<a.length; j++)