1.0.0 • Published 5 years ago

static-shuffle v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

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