Pseudorandomization with a fixed Trial at the End
I'm currently designing an experiment on Opensesame and I would like to create a loop where all trials are pseudorandomized by using the "mindist" constrain. That works like charm (Thanks for adding that handy feature, sebastiaan!), but the problem is that I would like to add a trial at the end and make sure that is always the last trial of the loop.
So far I've been trying to use an empty column in the variable table of the loop where only the intended-last-trial has a value. This way, in the script of the loop, I use the "sortby" command with the empty column and then the "roll" command with a -1 value to have the intended-last-trial not at the begining but at the very end of the loop. This also works good but since it re-orders the trials, the pseudorandomization constrain doesn't work anymore. The trials are fully randomized and with the specific trial at the end.
Any ideas of how could I combine both constrains or how could I insert the trial at the end of the loop after the pseudorandomization?
Thanks a lot!