[open] ISI with fixed intervals
I want to present picture stimuli with different ISI. I used this inline script. The only thing is that I want the ISIs to be exactly 1000, 1500, 2000, and 2500.
Please could you kindly advice what on this case.
Thanks in advance,
# Here we will determine the random duration between 1000 and 2500 ms: # Import the Python module random: # See also: http://docs.python.org/2/library/random.html import random # Use the function random.randint() to randomly draw # an integer (i.e. a whole number) between a certain # minimum and maximum. # See also: http://docs.python.org/2/library/random.html#random.randint # Set the minimum and maximum: minimum = 1000 maximum = 2500 # Determine the ISI for the current trial like so: ISI = random.randint(minimum, maximum) # Set this variable for future use in the interface (and to log the variable # in the logger item) like so: # See also: http://osdoc.cogsci.nl/usage/variables-and-conditional-qifq-statements#inline exp.set("ISI", ISI)