Description of the problem: For my first experiment (programmed in builder, version 2021.1.4; needs to run online) I need an inter-trial-interval that varies between 3 and 5 seconds per trial in one routine (see picture below).
What I tried so far:
- I added a code component (Begin Routine tab): Math.random(3,5.1)
- As I want a black background for the time of the ITI, I added a image component (just a black page) and put “ITI” into the duration tab
ITI as duration for the Black Background.
When I run it offline, I always add import random to the begin experiment tab and use random.uniform(3,5.1) for the begin routine tab. However this doesn’t work online (stuck at initialising experiment).
The Math.random function actually worked till today, so I really don’t know what happened…
Thank’s in advance for your help!