sampling a nested loop without replacements
I tried to be brief, and failed . Hopefully it's readable and someone would be able to help.
I will really appreciate it a lot!
I'm designing an artificial grammar learning (AGL) task in which participants see a sequence of 3-10 letters
and need to type them at the end.
The sequences are taken from a pool, and selected randomly for every participant.
For example, say that I have 120 sequences from every length of sequence (e.g., 120 sequences of 3 letters; 120 sequences of 4 letters, etc., and each participant see 20 different sequences of 3, 20 different sequences of 4, etc.).
The different length sequences should appear randomly (i.e., not first a sequence of 3 letters, and then a sequence of 4, etc.). It is important that a participant will not see the same sequence more than once.
Right now, I have a main loop (indicating what the length of the sequence will be),
and nested loops (a loop for every sequence length), that run if the condition for running it occur (more details in the attached file).
The nested loop breaks after one trial and going back to the main loop, and in the new trial the random sampling starts again, creating sampling with replacement that is problematic in this design.
Is there a way to sample without replacement? for example, deleting a line in the loop that was already executed?
Thanks for reading!
Looking forward to your responses,