# array-shuffle [![Build Status](https://travis-ci.org/sindresorhus/array-shuffle.svg?branch=master)](https://travis-ci.org/sindresorhus/array-shuffle) > Randomize the order of items in an array Uses the [Fisher–Yates algorithm](https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle). ## Install ``` $ npm install --save array-shuffle ``` ## Usage ```js const shuffled = arrayShuffle([1, 2, 3, 4, 5, 6]); //=> [3, 5, 4, 1, 2, 6] ``` ## License MIT © [Sindre Sorhus](https://sindresorhus.com)