1.0.0 • Published 5 years ago
static-shuffle v1.0.0
Static shuffle
Create a deterministic shuffle of an array given a seed
Install
npm install static-shuffle
Usage
const shuffle = require('static-shuffle');
shuffle(['Apple', 'Banana', 'Blueberry', 'Orange', 'Strawberry', 'Watermelon'], 'anything you want!');
// result
// ['Blueberry', 'Watermelon', 'Orange', 'Strawberry', 'Apple', 'Banana']
1.0.0
5 years ago