What are you trying to achieve?: I want to present sentences in a paced reading experiment. Each sentence has 20 windows, and there’s 60 sentences per condition, also divided by sets of 2. So, sentence 1 and 2 are part of the set 1, but they are both different conditions. I have a csv file with columns inidcating the condition and the set. I want to pseudorandomize the presentation order for each participant such that no sentence from the same condition and no sentence from the same set appear consecutively.
I would probably just code to make sure that when selecting the next trial, to make sure the list of trials available is all but the next trial (consecutively), without actually removing that item from the list (so it can be done on the next trial).
Also you could probably just have two spreadsheets of the trials, one with even and one with odd numbered trials. And have your experiment with two routines in the loop instead of one. With each loop being only even/odd numbered trials.
You can also increase the number of sets to “increase randomization” as much as you want.
ie: set 1 (1, 6), set 2 (2, 7), sett 3 (3, 8), set 4 (4, 9), set 5 (5, 10)
Then group sets 1, 3, and 5 the first set of trials. Then 2 and 4 to appear after.
There’s a ton of different ways to pseudorandomize trials
Issac
