macmcmeans / fisheryatesdurstenfeldknuthshuffle Goto Github PK
View Code? Open in Web Editor NEW๐ The standard algorithm for generating a uniformly chosen random permutation. Devised by Ronald Fisher and Frank Yates, modernized by Richard Durstenfeld and popularized by Donald E. Knuth. This version permits Sattolo cycles as well as seeded/keyed shuffles and unshuffles.
License: BSD 3-Clause "New" or "Revised" License