WingNews logo WingNews
top | new | best | ask | show | jobs
top | item 46229242

(no title)

chopin | 2 months ago

Is there a O(n) shuffling algorithm? In place, I don't think so.

discuss

order

tialaramex|2 months ago

Um, the "Knuth Shuffle" aka "Fisher-Yates" ?

https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle

powered by hn/api // news.ycombinator.com