Get the latest tech news

The Fisher-Yates shuffle is backward


Given a list of $latex n$ elements, such as cards in a deck, what is the right way to shuffle the list? That is, what is the appropriate algorithm to (pseudo)randomly permute the elements in the li…

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Fisher-Yates

Fisher-Yates

Photo of Yates shuffle

Yates shuffle

Related news:

News photo

Bring true randomness to Spotify with Fisher-Yates shuffle