| Reference | Downloads | Github

Randomly presenting a certain number of stimuli from a long list of stimuli


I am using Psychopy3 on a MacBook (stnadalone)

I am having a problem in a specific area of my experiment,
So what I aim to present is this:

Show 6 positive words separately and in quick unison. Rate positive or negative. Show 6 negative words separately and quickly. Rate negative or positive. Repeat this 100 times.

I currently have an excel sheet with a list of 300 positive and 300 negative words, currently the experiment shows me the first 6 words of the positive list and then record participants rating (P or N), first 6 words of the negative list and rating- then looped all this 100 times.

What I need now is to figure out how to get psychopy to randomly show 6 positive words and then 6 randomly picked negative words from the list of 300 words. By the end participants would have seen all 600 words but differently ordered in comparison to a different participant.

Any help would be greatly appreciated, thank you!
And happy new year :slight_smile:

Hi @minipsycho,

do you want to draw without replacement?

yes I did, I actually solved this by adding some code from and just edited it to fit my experiment.
Iā€™m actually having a different problem now relating to conditional branching if you know anything about that :see_no_evil:

1 Like