Randomly selected the word lists without repetition

Win 10/11
PsychoPy v2023.2.3

Hello everyone ! I’m really new to PsychoPy and don’t know anything about coding at all. More than that my english is also bad T^T, so I’m really sorry if I didn’t explain what I want clearly.

My experiment is recall memory test and these are what I have in my experiment
3 word lists (contains 20 words per list)
3 different background music conditions

The design is a within-subjects design, so every participant will see every wordlist once in different conditions (which is means different music playing in background)

What I want to achieve : I just want to randomly select the word list without repetition across 3 conditions but I don’t know how to start

More info : For now, I already know how to setting the background music by using information in Topic : One background music during a loop and this is what I’ve done so far :pleading_face:


Ps. I would appreciate if you could explain the solution in detail, or give me some examples.