Code that makes sure the stimuli do not appear too close to each other

Hello gamze

here you see one way how to randomize two positions

Alternatively, you could create a lis tof x- and y-positions at the beginning of the experiment, randomize those and pick from the list.

Best wishes Jens