1.0.4 • Published 6 years ago
n-shuffle v1.0.4
nano-shuffle
Fast'n'tiny shuffle array function, Durstenfeld shuffle algorithm. Copy-pasta from stackoverflow.
Install
npm install n-shuffle
Use
import shuffle from 'n-shuffle';
const list = [1, 2, 3];
shuffle(list);
1.0.4
6 years ago