/seed-shuffle

Array shuffle with random seed -- deterministic and fast -- for JavaScript

Primary LanguageJavaScriptThe UnlicenseUnlicense

seed-shuffle

This is an util to generate a shuffled array, with deterministic randomness provided by the seed.

How

> shuffle([1, 3, 2], 3)
[ 2, 3, 1 ]
> shuffle([1, 3, 2], 4)
[ 1, 3, 2 ]