Shuffle an array with a seed, and unshuffle back to the original with the same seed. Implemented with Mulberry32 PRNG and Fisher-Yates Shuffle algorithm in plain Javascript.
-
Updated
Dec 13, 2021 - JavaScript
Shuffle an array with a seed, and unshuffle back to the original with the same seed. Implemented with Mulberry32 PRNG and Fisher-Yates Shuffle algorithm in plain Javascript.
🔀 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.
Add a description, image, and links to the seeded-shuffle topic page so that developers can more easily learn about it.
To associate your repository with the seeded-shuffle topic, visit your repo's landing page and select "manage topics."