JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 10717
  • Score
    100M100P100Q140438F
  • License MIT

Shuffle Array based on a Seed

Package Exports

  • shuffle-seed

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (shuffle-seed) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

shuffle-seed npm travis filesize

Nodejs module to Shuffle an Array with seed 🌱

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