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(", "));