Quote:
Originally Posted by jmrker
arr.sort(function() { return 0.5 - Math.random();});
|
I have the idea in my mind that this sort function is biased. I may be wrong. Felgall may comment.
__________________
All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.
|