The code works perfectly. Thank you very much. I’ve tried it with different numbers of conditions and it works without any problems. I’ve also inserted the
.sort(v=>1-2*(Math.random()>=0.5)) from above to make it work in Chrome.
Thanks again for all your help. This is fantastic.