Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js shuffle array

yourArray.sort(function() { return 0.5 - Math.random() });
Source by css-tricks.com #
 
PREVIOUS NEXT
Tagged: #js #shuffle #array
ADD COMMENT
Topic
Name
5+6 =