Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

shuffle array javascript

let list = [1, 2, 3, 4, 5, 6, 7, 8, 9]
list = list.sort(() => Math.random() - 0.5)
Source by flaviocopes.com #
 
PREVIOUS NEXT
Tagged: #shuffle #array #javascript
ADD COMMENT
Topic
Name
6+4 =