HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by chopin | Hacker News Reader
Parent
Full thread
chopin
·
Is there a O(n) shuffling algorithm? In place, I don't think so.
View on HN
tialaramex
·
Um, the "Knuth Shuffle" aka "Fisher-Yates" ?
https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle
Reply on news.ycombinator.com