# Random stimuli selection with no repitition of stimuli

**URL:** <https://discourse.psychopy.org/t/random-stimuli-selection-with-no-repitition-of-stimuli/3951>\
**Category:** Builder\
**Created:** [February 14, 2018, 4:06pm UTC](https://discourse.psychopy.org/t/random-stimuli-selection-with-no-repitition-of-stimuli/3951 "2018-02-14T16:06:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bee](https://avatars.discourse-cdn.com/v4/letter/b/ce7236/32.png) [@bee](https://discourse.psychopy.org/u/bee)\
**Post date:** [February 14, 2018, 4:06pm UTC](https://discourse.psychopy.org/t/random-stimuli-selection-with-no-repitition-of-stimuli/3951/1 "2018-02-14T16:06:31Z")

</div>

Hello all,

I am currently trying to have both image trials and video trials be selected at random, which I have achieved, but the stimuli is selected again in the next loop. I do not want them to repeat. I have seen other posts about this but the solutions don’t seem to fit (or I havent understood them properly).

I would like the stimuli in a particular order. So I would like 3 images to display, followed by ONE video. This routine loops 9 times. I am not concerned about the image trials repeating, but I want the video selected only once. Currently, Psychopy is displaying a video and then showing the same video again during another loop.

I have attached some screenshots if they help.

If I’m not clear please ask and I’d be happy to explain further.

![43](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/6/1/61e7d7b95fc822b3c45cb59adf98dd7f12d30453.png)

![26](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/d/0/d0228677f6f83fadad76e9250885162421f427d2.png)
