Create 12 unique random pairs from two different lists, and KEEP the pairing constant
I would like to know how to create 12 unique random pairs from two different lists of images, and keep this random pairing constant throughout the entire experiment (i.e. constant for a participant) but different between participants.
In my loop, I created three columns (see attached picture1):
- The first one named “face”, is composed of 15 unique human faces named from “face_a”, to “face_o”.
- The second column named “bio”, is composed of 12 pictures of very short biographies named from “bio_1” to “bio_12”.
- The third list is correct_response (which in my case is g).
Then in the sequence using a keyboard_response and a sketchpad (see attached picture2), I would like to display at the same time one image from “face” and one image from “bio” (this represents one pair, for instance “face _b” with “bio_4”) and participants will have to press the G k to see the next pair (e.g. “face_d” with “bio_11”).
In total, I would like to display 12 unique pairs per loop (but I have 15 faces, so some of them will not be used). And within a loop, each face and each biography can only be used once. (So, if “face_d” has previously been associated with “bio_11”, in the next trial, neither “face_d” nor “bio_11” can be used to create a new pair).
Because in my experiment, participants will have multiple occasions to learn the association between the faces and the biographies (throughout different loops), I would like the 12 pairs, once created, to remain constant throughout the entire experiment.
However, I would like the pairs to be different between participants. (For instance, if for the 1st participant “face_a” was associated with “bio_4”, for the 2nd participant “face_a” will not necessarily be associated with bio_4).
Despite my research, I really do not know how to do this, and I will greatly appreciate if someone could help me.
I hope my explanations are clear, otherwise do not hesitate to ask me for more precision.