Randomly selecting rows

Hey there,

In my conditions file, I have 100 trials. I want every participant to be presented with a random 40 of them. How can I do it?

Thank you

Hello,

do you want that all 100 trials will be presented evenly across participants or is this of no relevance?

Best wishes Jens

Thank you for the answer.

I want every participant to be presented a random 40 trials among the 100 trials.

Bests

Hello,

ok, here is an example for a random selection of four elements out of a list of ten elements.I make use of the Selected rows-argument of the loop.

ran_trial.psyexp (8.3 KB)
number.xlsx (8.4 KB)

You should be able to scale it up to 40 out of 100.

Best wishes Jens

1 Like

Great, thank you so much!!