problem with randomization code
I try to pseudorandomize the presentation order of my stimuli (videos). I used the code that was mentioned in a previous post in the forum (https://forum.cogsci.nl/discussion/80/solved-pseudorandom-order) with a few alterations in order to cover my restrictions (we don't want to have two target stimuli in immediate succession as well as more than 3 neutral stimuli).
The code is the following:
at the start of the experiment:
and at the start of a trial:
It worked perfectly when i had a small number of stimuli (around 25), but when i inserted all the stimuli that i wanted to include in my experiment (66 stimuli), it got stuck and the experiment didn't start at all (it was not responding). I use the latest version of opensesame (i tried it in an older as well and i had the same issue).
I would really appreciate any help with this issue.