Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js list random order

for(let i = array.length — 1; i > 0; i--){  const j = Math.floor(Math.random() * i)  const temp = array[i]  array[i] = array[j]  array[j] = temp}
Source by medium.com #
 
PREVIOUS NEXT
Tagged: #js #list #random #order
ADD COMMENT
Topic
Name
3+1 =