My function that shuffles an array and then returns it isn't working properly, and I can't understand why.
numbers.sort(function() { return Math.round(Math.random()); } );
return numbers;
This works, however the first item in the array is always the same.
does anyone know why?