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 pag
Chance.js worked perfectly. Thank you Billy Moon.
My Example:
var chance1 = new Chance(124); // you can choose a seed here, i chose 124
console.log(chance1.shuffle(['alpha', 'bravo', 'charlie', 'delta', 'echo']));
// Array [ "alpha", "delta", "echo", "charlie", "bravo" ]
As long as you set the seed with new Chance(xxx) you get the same result every time.