AlgorithmsNumerics & probabilityEdit on GitHubEdit history
Fisher–Yates Shuffle
Knuth shuffle, Durstenfeld shuffle1938
An algorithm that shuffles an array so that every permutation is equally likely by swapping, from the end, each position i with a random position in 0..i. The in-place O(n) form for computers was published by Durstenfeld.
Origin
2 independent origins — credit is split among them
Ronald A. Fisher, Frank Yates (1938). Statistical Tables for Biological, Agricultural and Medical Research. Oliver & Boyd, London (book).No digital identifier · Search scholarly sourcesIt was originally presented as a pencil-and-paper procedure for producing random permutations with a table of random numbers.
Richard Durstenfeld (1964). Algorithm 235: Random permutation. Communications of the ACM 7(7).doi:10.1145/364520.364540 — checked against Crossref, 2026-11-08
Lineage
Algorithms 1 · Relations 0
No derivations recorded yet.
Notable implementations
Paths checked against the GitHub default branch
Find more: GitHub · Semantic Scholar · Google Scholar · arXiv
Claims & disputes
Loading…