Millisecond Forums

Random list selection

https://forums.millisecond.com/Topic36593.aspx

By vicki.rivera - 10/25/2024

Is there a way to have the script not select the same item from the list for baseline_persons and baseline_objects? For example, if baseline_persons is "CURTAIN", I don't want baseline_objects to also be "CURTAIN".

<item baseline_prime>
/ 1 = "CURTAIN"
/ 2 = "TABLE"
/ 3 = "UTENSIL"
/ 4 = "VOWEL"
/ 5 = "COLUMN"
/ 6 = "PAPER"
/ 7 = "PENCIL"
/ 8 = "METAL"
</item>

<text baseline_persons>
/ items = baseline_prime
/ select = noreplace
/ selectionrate = experiment
/ position = (50%, 50%)
</text>

<text baseline_objects>
/ items = baseline_prime
/ select = noreplace
/ selectionrate = experiment
/ position = (50%, 50%)
</text>
By Dave - 10/25/2024

vicki.rivera - 10/25/2024
Is there a way to have the script not select the same item from the list for baseline_persons and baseline_objects? For example, if baseline_persons is "CURTAIN", I don't want baseline_objects to also be "CURTAIN".

<item baseline_prime>
/ 1 = "CURTAIN"
/ 2 = "TABLE"
/ 3 = "UTENSIL"
/ 4 = "VOWEL"
/ 5 = "COLUMN"
/ 6 = "PAPER"
/ 7 = "PENCIL"
/ 8 = "METAL"
</item>

<text baseline_persons>
/ items = baseline_prime
/ select = noreplace
/ selectionrate = experiment
/ position = (50%, 50%)
</text>

<text baseline_objects>
/ items = baseline_prime
/ select = noreplace
/ selectionrate = experiment
/ position = (50%, 50%)
</text>

<item baseline_prime>
/ 1 = "CURTAIN"
/ 2 = "TABLE"
/ 3 = "UTENSIL"
/ 4 = "VOWEL"
/ 5 = "COLUMN"
/ 6 = "PAPER"
/ 7 = "PENCIL"
/ 8 = "METAL"
</item>

<list itemnumbers>
/ poolsize = 8
/ selectionrate = always
</list>

<values>
/ person = 0
/ object = 0
</values>

<text baseline_persons>
/ items = baseline_prime
/ select = values.person
/ position = (50%, 50%)
</text>

<text baseline_objects>
/ items = baseline_prime
/ select = values.object
/ position = (50%, 50%)
</text>

<trial o>
/ stimulusframes = [1=text.baseline_objects]
/ validresponse = (57)
</trial>

<trial p>
/ stimulusframes = [1=text.baseline_persons]
/ validresponse = (57)
</trial>

<block exampleBlock>
/ trials = [1-10 = noreplace(o, p)]
</block>

<expt exampleExpt>
/ onexptbegin = [
    values.object = list.itemnumbers.nextindex;
    values.person = list.itemnumbers.nextindex;
]
/ blocks = [1=block.exampleBlock]
</expt>