static-shuffle

1.0.0 • Public • Published

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']

/static-shuffle/

    Package Sidebar

    Install

    npm i static-shuffle

    Weekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    3.04 kB

    Total Files

    5

    Last publish

    Collaborators

    • ccampbell