Millisecond Forums

random alignment of stimuli

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

By shane - 10/27/2014

Hi,

I'm attempting to program a seemingly simple script wherein from among a list of 40 text stimuli, each item is selected randomly (no problem with that part), and the text is presented at the top or bottom part of the screen randomly, about an equal number of times (that is, about 20 items should appear at the top, 20 at the bottom). It's the latter part - the randomization of the vertical alignment that is creating some difficulty for me.  Your help is appreciated!  

Best,

By Dave - 10/27/2014

This should be fairly straightforward:

<block myblock>
/ trials = [1-4=mytrial]
</block>

<trial mytrial>
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<text mytext>
/ items = ("A", "B", "C", "D")
/ vposition = list.randvpos.nextvalue
</text>

<list randvpos>
/ items = (15%, 85%)
/ poolsize = 4
</list>