This is an util to generate a shuffled array, with deterministic randomness provided by the seed.
> shuffle([1, 3, 2], 3)
[ 2, 3, 1 ]
> shuffle([1, 3, 2], 4)
[ 1, 3, 2 ]
Array shuffle with random seed -- deterministic and fast -- for JavaScript
JavaScriptUnlicense