function shuffle(array) {
array.sort(() => Math.random() - 0.5);
}
let x = {{options}};
shuffle({x);
setVariable({{options}}, x);
function shuffle(array) { for (let i = array.length - 1; i > 0; i--) { const j = Math.floor(Math.random() * (i + 1)); [array[i], array[j]] = [array[j], array[i]]; } } let x = {{options}}; shuffle(x); setVariable('options', x);
setVariable
function is only available in script executed on the server