Wondering what’s next for npm?Check out our public roadmap! »

    shuffle-seed
    DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/shuffle-seed package

    1.1.6 • Public • Published

    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

    Install

    npm i shuffle-seed

    DownloadsWeekly Downloads

    34,751

    Version

    1.1.6

    License

    MIT

    Last publish

    Collaborators

    • avatar