DEV Community

loading...

Discussion on: How to shuffle an array in JavaScript

codebubb profile image
James Bubb Author

Haha! I like this from that site: But due to the utter randomness of the comparison the black box goes mad, and how exactly it goes mad depends on the concrete implementation that differs between engines.

So yes, I think it's down to the JavaScript runtime itself where the problem lies.