Randomising ISI in builder

Hi there,

Not much experience with PsychoPy and can’t figure out how to randomise the inter-stim interval in my go/no-go experiment, which i’ve used the keyboard response to define the duration of. Currently its set at 1s but I would like it to present the image stimulus for 100ms every time, just at random intervals between 1-2s each trial in the loop. Please let me know what I can do! Thank you. (Picture attached for context)

You can use Python code for the Start/Stop/Duration values of components - the function random() will generate a random number between 0 and 1 so you can use this to pick a random time. So for a random duration of between 0 and 4 seconds you could do random()*4, for between 2 and 4 seconds you could do random()*2+2. Basically it’s random()*(max-min)+min (where max is the highest possible value and min is the lowest)