I am presenting 6 images simultaneously. I somehow successfully randomized the order of images but it gues a bit controlled way; certain combinations are appearing in a randomized way but they are never randomized with the rest of the stims.
First, I defined all combinations in my condition file:
Then, set every combination of X and Y (X1-Y1, X1-Y2, X2-Y1 … etc.) as position conditions in image properties for all 6 images
Finally wrote the following code:
Problem is: This allows only certain types of combinations that I pre-determined in the .xlsx file, image properties, and the custom code. Could you please help me fullly randomize the positions?
Thank you in advance,
Have a look at my independent randomisation demo.
If you have routines or experiments that are likely to be useful to others, please create a post in this thread, editing your post to add new demos so there is one post per creator. Ideally set your demos so they can be tested without consuming a credit (if you don’t have a site license) by adding a final routine that can’t end, disabling save incomplete results and adding a small number of credits.
Please do not discuss the demos in this thread or create more than one post unless you have a la…
When I tried the procedure below, some of the items overlapped
sidesX = [-.43, 0, .43, -.43, 0, .43] #I repeated the numbers because when I include 3 of them, all items were overlapping.
Image properties for each image, set every repeat:
(sidesX, sidesY) etc.
I want to see 3 images appear upper or lower portion of the screen side by side.
1 2 3
4 5 6
But this code gives me this:
You are shuffling the x and y coordinates separately.
# Begin Experiment
sides = [[-.43,-.3],[-.43, .3],[0, ,-.3],[0, .3],[.43, -.3],[.43, -.3]]
# Begin Routine
# Image properties, set every repeat
(sides, sides) etc.
sorry, I could not understand the logic.
The coordinates of the ith position is:
So all of your horizontal coordinates should be sides[item number]