{"name":"array-shuffle","version":"1.0.0","description":"Randomize the order of items in an array","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/array-shuffle"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["array","arr","list","shuffle","sort","random","rand","fisher","yates"],"devDependencies":{"mocha":"*"},"gitHead":"62c3030d199601c644392dbce3ac822b222d1b4b","bugs":{"url":"https://github.com/sindresorhus/array-shuffle/issues"},"homepage":"https://github.com/sindresorhus/array-shuffle","_id":"array-shuffle@1.0.0","_shasum":"c133fa73587099bd77ad17cb762dd7ee44d9415b","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"dist":{"shasum":"c133fa73587099bd77ad17cb762dd7ee44d9415b","tarball":"http://registry-npm.ywwl.com/array-shuffle/download/array-shuffle-1.0.0.tgz","integrity":"sha512-q8iN5P3sXMg7dFPymwPdHpvP9SwdfwCaSfg5eUHsNZkzE4aliCzicRW8sP7zQM7FboHo/xUK9HhmlFa/uun4IA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD5aD79u9ZgUzjHCBmahYdZZwoqUKMNl5J4EI+wJwZ5cAIhAM2E2ELT02PcAiNQiKH9g4rqvK4w7uGCIWIU43/pIN2f"}],"size":900,"noattachment":false,"key":"/array-shuffle/-/array-shuffle-1.0.0.tgz"},"directories":{},"readme":"# array-shuffle\n\n> Randomize the order of items in an array\n\nUses the [Durstenfeld algorithm](https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle#The_modern_algorithm) which is based on the [Fisher–Yates algorithm](https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle).\n\n## Install\n\n```\n$ npm install array-shuffle\n```\n\n## Usage\n\n```js\nimport arrayShuffle from 'array-shuffle';\n\nconst shuffled = arrayShuffle([1, 2, 3, 4, 5, 6]);\n//=> [3, 5, 4, 1, 2, 6]\n```\n\n## API\n\n### arrayShuffle(array)\n\n#### array\n\nType: `Array`\n\nThe array to shuffle.\n","publish_time":1407947807276,"_cnpm_publish_time":1407947807276,"dist-tags":{"latest":"4.1.0"}}