https://github.com/webcaetano/shuffle-seed
[DEPRECATED] Nodejs module to Shuffle an Array with seed :seedling:
https://github.com/webcaetano/shuffle-seed
node-module nodejs seed shuffle shuffle-seed
Last synced: 6 months ago
JSON representation
[DEPRECATED] Nodejs module to Shuffle an Array with seed :seedling:
- Host: GitHub
- URL: https://github.com/webcaetano/shuffle-seed
- Owner: webcaetano
- License: mit
- Created: 2015-10-28T21:01:06.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2023-08-09T16:14:33.000Z (about 2 years ago)
- Last Synced: 2025-04-08T01:53:42.053Z (6 months ago)
- Topics: node-module, nodejs, seed, shuffle, shuffle-seed
- Language: JavaScript
- Homepage:
- Size: 22.5 KB
- Stars: 28
- Watchers: 3
- Forks: 9
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [DEPRECATED]
# 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-squareNodejs 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"]
```[](https://www.npmjs.com/package/shuffle-seed)
-------------------
The MIT [License](https://raw.githubusercontent.com/webcaetano/shuffle-seed/master/LICENSE)