An open API service indexing awesome lists of open source software.

https://github.com/ccampbell/static-shuffle

Create a deterministic shuffle of an array given a seed
https://github.com/ccampbell/static-shuffle

Last synced: 3 months ago
JSON representation

Create a deterministic shuffle of an array given a seed

Awesome Lists containing this project

README

          

# Static shuffle

Create a deterministic shuffle of an array given a seed

## Install

```
npm install static-shuffle
```

## Usage

```javascript
const shuffle = require('static-shuffle');
shuffle(['Apple', 'Banana', 'Blueberry', 'Orange', 'Strawberry', 'Watermelon'], 'anything you want!');

// result
// ['Blueberry', 'Watermelon', 'Orange', 'Strawberry', 'Apple', 'Banana']
```