ori = [90,180,270,360]
shuffle(ori)
orientation = ori.pop()
You might need to change manually
ori.pop
to
ori.shift();
, see
You posted in Online experiments, so I assume that you will run the experiment online. Do not import libraries (e.g. import random). That will not work online.The Builder will import all libraries for which there are PsychoJS counterparts.
Yeah I’ve had issues in the past where I built my experiment using import random, then found it wouldn’t work online. So I definitely learned my lesson there.