Y
Hacker News
new
|
ask
|
show
|
jobs
by
nobodysfool2
4323 days ago
If you are using Python, you should use the standard 'random.shuffle' which does use the Fisher-Yates algorithm.
3 comments
cruise02
4323 days 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.
link
kiyoto
4323 days ago
If you are using Excel, you might find my blog entry useful:
http://kiyototamura.tumblr.com/post/91613880102/generating-a...
link
silentbicycle
4323 days ago
There's value in knowing how it's implemented.
link
taeric
4323 days 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.
link