# Randomizing without repeats

**URL:** <https://discourse.psychopy.org/t/randomizing-without-repeats/31134>\
**Category:** Builder\
**Created:** [September 28, 2022, 9:03pm UTC](https://discourse.psychopy.org/t/randomizing-without-repeats/31134 "2022-09-28T21:03:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sarahnpope](https://avatars.discourse-cdn.com/v4/letter/s/e79b87/32.png) [@sarahnpope](https://discourse.psychopy.org/u/sarahnpope)\
**Post date:** [September 28, 2022, 9:03pm UTC](https://discourse.psychopy.org/t/randomizing-without-repeats/31134/1 "2022-09-28T21:03:39Z")

</div>

I am building a mental rotation task. The loop is set to random with nReps at 1.

The program is repeating images from the list instead of only doing each image once.

I tried setting the nReps to nothing, which made the experiment terminate early. I then set it to 0 and the experiment didnt show any images.

It was my understanding the psychopy automatically does randomize without repeats. Is that wrong?

---

<div class="post-metadata">

**Author:** ![suelynnmah](https://avatars.discourse-cdn.com/v4/letter/s/59ef9b/32.png) [@suelynnmah](https://discourse.psychopy.org/u/suelynnmah)\
**Post date:** [September 29, 2022, 8:48am UTC](https://discourse.psychopy.org/t/randomizing-without-repeats/31134/2 "2022-09-29T08:48:35Z")

</div>

Yes, if you set nReps to 1 with the loop set to random, it would randomise without repeating. Do you mind sharing your files so that I can take a closer look?

---

<div class="post-metadata">

**Author:** ![sarahnpope](https://avatars.discourse-cdn.com/v4/letter/s/e79b87/32.png) [@sarahnpope](https://discourse.psychopy.org/u/sarahnpope)\
**Post date:** [September 29, 2022, 12:14pm UTC](https://discourse.psychopy.org/t/randomizing-without-repeats/31134/3 "2022-09-29T12:14:31Z")

</div>

I fixed it! I’m not sure what helped, but I played with the component and loop settings I’m pretty sure it was one or both of those things that were off.

Thank you so much!
