Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Randomizing location and correct response

Hello helpful forum members!

I am completely new to OpenSesame and relatively new to Python.  I am trying to put together an experiment with the basic set-up as follows:(1) a recording plays (2) when the recording finishes, two pictures appear on the screen, one on the right and one on the left (3) the participant hits a key on the keyboard to choose the picture that matches the sentence, “a” for the picture on the left and “l” for the picture on the right (4) participant sees a feedback image of a green check mark or a red X, depending on whether or not they picked the correct image.

Ideally, I would like to completely randomize which side of the screen the correct image appears on for each trial. The issue is, that this would also change which key response (“a” or “l”) would be considered the correct response for that trail. None of the examples or videos on randomization that I could find online had examples of randomization like this which directly influenced which answer was right in a keyboard response. The only examples that I have been able to find either (a) do not involve randomizing what the correct response would be, or (b) use a mouse response not a keyboard response, which I would prefer not to do.

Does anyone have any thoughts on how I would construct this in OpenSesame or know of an online reference for this that I might use? Thank you in advance!


  • Hi Megan,

    The beginner's tutorial describes this scenario pretty well. You can find it here:

    Basically, you randomize the side each response is presented, and then manually add a column to the loop table in which you set the correct response for that particular configuration. If you have a limited number of trials this is the easiest solution.

    Hope this helps.


Sign In or Register to comment.