Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
nobodysfool2
on Aug 11, 2014
|
parent
|
context
|
favorite
| on:
Unbiased Randomization with the Fisher-Yates Shuff...
If you are using Python, you should use the standard 'random.shuffle' which does use the Fisher-Yates algorithm.
cruise02
on Aug 11, 2014
|
next
[–]
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.
kiyoto
on Aug 11, 2014
|
prev
|
next
[–]
If you are using Excel, you might find my blog entry useful:
http://kiyototamura.tumblr.com/post/91613880102/generating-a...
silentbicycle
on Aug 11, 2014
|
prev
[–]
There's value in knowing how it's implemented.
taeric
on Aug 11, 2014
|
parent
[–]
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.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: