Random With Replacement

Is it possible to randomise WITH replacement in PsychoPy? I can see no option for it within the loop options, so would I have to code it instead?

Is there a way to code it in, whilst also still using a conditions file? There are quite a few columns within it so I’d like to be able to keep it if possible. If not, what are the options for coding with replacement?

Thanks

You are right that at the moment you would need to use a bit of code here, though not necessarily a lot! You can use a spreadsheet to set up the available trials then sample from them at random using something like this demo:

Hope this helps,
Becca
words.xlsx (17.9 KB)

randomreplacement.psyexp (11.4 KB)