a-shuffle

1.0.1 • Public • Published

a-shuffle

Returns a shuffled copy of the list, using a version of the Fisher-Yates shuffle

Install

$ npm install --save a-shuffle

Example

var shuffle = require('a-shuffle');
console.log(shuffle([1, 2, 3, 4, 5, 6]));
//=> [3, 5, 4, 1, 2, 6]

require('a-shuffle')(array)

Arguments:

  • [array]: list

Returns: Returns a shuffled copy of the list

License

© 2016 vikram. MIT License

Package Sidebar

Install

npm i a-shuffle

Weekly Downloads

2

Version

1.0.1

License

ISC

Last publish

Collaborators

  • vikramcse