# shuffle-seed

> Shuffle Array based on a Seed

Latest version **1.1.6** (published 2016-11-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install shuffle-seed
pnpm add shuffle-seed
yarn add shuffle-seed
bun add shuffle-seed
```

## Health

**Score 23/100 (F)** — status: abandoned.

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.6 |
| Published | 2016-11-11 |
| First published | 2015-10-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/shuffle-seed) |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 28 |
| Author | Andre Caetano |
| Maintainers | webcaetano |
| Keywords | array, seed, shuffle, shuffle, seed, random |

## Links

- npm: https://www.npmjs.com/package/shuffle-seed
- Repository: https://github.com/webcaetano/shuffle-seed
- Homepage: https://github.com/webcaetano/shuffle-seed#readme
- Issues: https://github.com/webcaetano/shuffle-seed/issues
- npm.io page: https://npm.io/package/shuffle-seed

## Dependencies (1)

- [seedrandom](https://npm.io/package/seedrandom.md) ^2.4.2

## Recent versions

- 1.1.6 (latest) — 2016-11-11
- 1.1.5 — 2015-10-31
- 1.1.2 — 2015-10-31
- 1.1.0 — 2015-10-28
- 1.0.1 — 2015-10-28
- 1.0.0 — 2015-10-28

## README

# shuffle-seed [![npm][npm-img]][npm-url] [![travis][travis-img]][travis-url] ![filesize][file-size-img]

[npm-img]: https://img.shields.io/npm/v/shuffle-seed.svg?style=flat-square
[npm-url]: https://npmjs.org/package/shuffle-seed
[travis-img]: https://img.shields.io/travis/webcaetano/shuffle-seed.svg?style=flat-square
[travis-url]: https://travis-ci.org/webcaetano/shuffle-seed
[file-size-img]: https://badge-size.herokuapp.com/webcaetano/shuffle-seed/master/shuffle-seed.min.js.svg?style=flat-square


Nodejs module to Shuffle an Array with seed :seedling:


Array Shuffle Seed based on module [davidbau/seedrandom](https://github.com/davidbau/seedrandom)

## Installation 

```
npm install shuffle-seed
```

## Usage :

```javascript
var shuffleSeed = require('shuffle-seed');
var a = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"];
var resp = shuffleSeed.shuffle(a,"Kappa");
// result always will be [f','y','p','i','r','v','a','x','q','e','c','b','n','j','t','z','o','l','w','m','k','g','h','u','d','s']

shuffleSeed.unshuffle(resp,"Kappa");
// result ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"]
```


[![npm](https://nodei.co/npm/shuffle-seed.png?downloads=true&downloadRank=true&stars=true)](https://www.npmjs.com/package/shuffle-seed)

-------------------

The MIT [License](https://raw.githubusercontent.com/webcaetano/shuffle-seed/master/LICENSE)

---
_Source: https://npm.io/package/shuffle-seed · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
