function shuffle(array) { array.sort(() => Math.random() - 0.5); } let x = {{options}}; shuffle({x); setVariable({{options}}, x);