Fisher–Yates shuffle

The Fisher–Yates shuffle is an algorithm for shuffling a finite sequence. The algorithm takes a list of all the elements of the sequence, and continually determines the next element in the shuffled sequence by randomly drawing an element from the list until no elements remain.

Source: Wikipedia — Fisher–Yates shuffle (CC BY-SA 4.0)

Fisher–Yates shuffle

The Fisher–Yates shuffle is an algorithm for shuffling a finite sequence. The algorithm takes a list of all the elements of the sequence, and continually determines the next element in the shuffled sequence by randomly drawing an element from the list until no elements remain.

Source: Wikipedia "Fisher–Yates shuffle" · CC BY-SA 4.0

Share this article: X · Bluesky
Privacy Policy