Answers for "how to randomize array in javscript"

11

how to randomly sort an array javascript

array.sort(() => Math.random() - 0.5);
Posted by: Guest on May-29-2021

Code answers related to "how to randomize array in javscript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language