/Randomize

Randomize array

Primary LanguageJavaScript

Randomize

Randomize array

randomize() takes an array as first argument (mandatory) and returns a new array randomized. If the second argument (optional) is set to true, it assigns the new randomized array to the original array.