DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
5+6 =
Submit