shuffle-seed
Shuffle Array based on a Seed
Last updated 9 years ago by webcaetano .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install shuffle-seed 
SYNC missed versions from official npm registry.

shuffle-seed npm travis filesize

Nodejs module to Shuffle an Array with seed :seedling:

Array Shuffle Seed based on module davidbau/seedrandom

Installation

npm install shuffle-seed

Usage :

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


The MIT License

Current Tags

  • 1.1.6                                ...           latest (8 years ago)

6 Versions

  • 1.1.6                                ...           8 years ago
  • 1.1.5                                ...           9 years ago
  • 1.1.2                                ...           9 years ago
  • 1.1.0                                ...           9 years ago
  • 1.0.1                                ...           9 years ago
  • 1.0.0                                ...           9 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (12)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE