samedi 31 janvier 2015

Predictable Javascript array shuffle

I'm trying to predictably shuffle javascript arrays the same way each time the webpage is loaded.


I can shuffle the arrays randomly, but every time i reload the page it's a different sequence.


I'd like it to shuffle the arrays the same way every time the page loads. There are many arrays and they are part of a procedurally generated world.





Aucun commentaire:

Enregistrer un commentaire