top | item 8164584

(no title)

nobodysfool2 | 11 years ago

If you are using Python, you should use the standard 'random.shuffle' which does use the Fisher-Yates algorithm.

discuss

order

cruise02|11 years ago

It does seem strange to say "However, there are plenty of languages that don’t provide built in support for such a function, leaving you on your own." and then show examples in Python.

silentbicycle|11 years ago

There's value in knowing how it's implemented.

taeric|11 years ago

Further, there is value in knowing what makes the incorrect ways incorrect. :)

Also, even in the article it noted to use a library if your language allows.