Set random value with inline
i am new to OpenSesame, and am trying to programme an experiment in which participants choose an urn - A or B - nad based on which urn they choose, a colour - blue or red - is randomly selected.
So far i have a custom form with two buttons for A and B. After the custom form i have an inline which should do the following:
- shuffle two lists - one for each urn
- randomly pick an number from 0 to 9 and store it in the variable 'pick'
- pick a value, i.e. colour, from the urn list depending on whether participants previously clicked on A or B and store it in the variable 'marble'
Unfortunately this inline does not work. I logged the pick and the marble variable, but the inline does not seem to work, since the pick variable always shows up as 0 and the marble variable remains emplty.
I have added screenshots of the inline below. A copy of the experimental file is also attached, incase that might help.
I wold be very greateful for any help.