How to randomize a javascript array?

Posted by Click Upvote on Stack Overflow See other posts from Stack Overflow or by Click Upvote
Published on 2010-03-15T22:37:11Z Indexed on 2010/03/15 22:39 UTC
Read the original article Hit count: 187

Filed under:
|

I have one array like this:

var arr 1 = ["a", "b", "c", "d"];

How can I randomize / shuffle it?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery