Select the following function that shuffles an array?
Answer
Correct Answer: function shuffle(array) { var tmp, current, top = array.length; if(top) while(--top) { current = Math.floor(Math.random() * (top + 1)); tmp = array[current]; array[current] = array[top]; array[top] = tmp; } return array; }
Explanation:
Note: This Question is unanswered, help us to find answer for this one