simon
New Member
Posts: 1
|
Post by simon on Jun 28, 2021 12:20:42 GMT
I'm looking for a way to control the random numbers generator, i.e. to set the seed. Is this possible at all?
Use case: I want to repeatedly run an experiment in the same participants and randomly pull a new set of stimuli from a pool of stimuli without repeating any stimulus whenever I rerun an experiment in a participant. This could be a simple recognition memory experiment which draws from a large set of images or words. I would like to make sure that different subsets of stimuli are created for each participants, and that no stimulus is repeated within participant.
I wanted to implement this as follows: 1) set the seed of the random number generator to the unique participant-ID number. 2) shuffle the original list of stimuli based on this seed whenever I run the experiment in this participant (yielding the same shuffled list whenever I run the experiment)
3) pull a new subset of stimuli from the shuffled list whenever i repeat the experiment (items 1-40 for run 1, items 41 to 80 for run 2, items 81-120 for run 3).
Any ideas on how to implement this?
|
|