Randomize a unordered list [duplicate]
This question already has answers here : Closed 8 years ago . Possible Duplicate: javascript - shuffle HTML list element order After a little bit of help. After something quite simple, but can't seem to find a way of doing it myself. I've got a dynamic unordered list being generated from some back end code, (not under my control). The list can be anything from 9 tags up to 100+. They are returned in an order, as defined by the backend code. Using jQuery/javascript I would like to be able to randomize the order of the li tags without having any of them repeat. My my list would currently look