/array.shuffle

A simple JavaScript function to shuffle array randomly

Primary LanguageJavaScript

JavaScript Array Shuffle

This is simple JavaScript library which shuffles the array randomly.
This modifies the existing array itself.

usage:

var arr = [1, 2, 3, 4, 5, 6];
array.shuffle();
console.log(array.join(", "));