DEV Community

Discussion on: 10 Practical JavaScript Tricks

Collapse
 
fkereki profile image
Federico Kereki

Hi! The shuffle() code isn't really a very good shuffle, insofar that not all possible permutations are equally probable. I'd rather read en.wikipedia.org/wiki/Fisher-Yates... for good algorithms.