I want to randomize the number of repeats($nReps) in ‘trials’ loop
I have to create an experiment in which we make 12 blocks of random trials.
In each trials, when ‘space’ pressed, the image feedback appears and
when the trials are repeated for the number between 5 and 16 times,
the chocolate feedback appears.
Each block contains randomized number of trials(5-16 times).
What did you try to make it work?:
I used code component.
nrepeats = numpy.random.randint(5,16)
What specifically went wrong when you tried that?:
when I put the code at ‘Begin Experiment’
it worked, but at ‘Begin Routine’, it didn’t work with no error output.
My problem is that If I put it at ‘Begin Experiment’,
the number of repeats is same for each of 12 blocks.
Thank you for any help or idea!