npm.io
1.0.5 • Published 4 years ago

easy-shuffle

Licence
MIT
Version
1.0.5
Deps
0
Size
4 kB
Vulns
0
Weekly
0
Stars
1

Shuffle Array

Simplest shuffle array algorithm.

Installation

$ npm install easy-shuffle

Usage

const shuffle = require('easy-shuffle');

const array = [1, 2, 3, 4, 5];

const shuffledArray = shuffle(array);

console.log(shuffledArray) // [ 4, 1, 2, 5, 3 ];

License

MIT License. Copyright (c) 2022

Keywords