**Description of the problem:** I’ve been trying to convert a jittered ITI routine from a PsychoPy study to PsychoJS but am having trouble with the code conversion.

The original code I used for python was:

jitter = np.arange(0.3, 0.6, 0.25)

shuffle(jitter)

This worked perfectly when run in PsychoPy. However, when running in Pavlovia, the jitter function is not defined. Is there a way to make this work in its current state? I looked into converting the code to Java and ended up with this instead:

jitter = Math.random()*(0.3 - 0.6) + 0.3;

I’m not too familiar with Java so the above didn’t seem to work either! If I need to use Java to get around the first problem, I would prefer a set of defined increments of 25ms, randomly chosen, as in the python version but after looking around have not been able to find the solution myself!

Any help on this is greatly appreciated