# Pseudorandomization without repeating trials of a category within a block

**URL:** <https://discourse.psychopy.org/t/pseudorandomization-without-repeating-trials-of-a-category-within-a-block/46987>\
**Category:** Builder\
**Created:** [April 15, 2026, 6:30pm UTC](https://discourse.psychopy.org/t/pseudorandomization-without-repeating-trials-of-a-category-within-a-block/46987 "2026-04-15T18:30:34Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [April 15, 2026, 10:15pm UTC](https://discourse.psychopy.org/t/pseudorandomization-without-repeating-trials-of-a-category-within-a-block/46987/2 "2026-04-15T22:15:48Z")

</div>

You can set use rows for a loop to a custom ordered list and set the loop type to sequential, but you would need to do this before the loop starts, so use concentric loops with the outer loop for the blocks.

There are some examples that might be helpful here:

> [@PsychoPy Online Demos](https://discourse.psychopy.org/t/psychopy-online-demos/22319):
>
> 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…

Complex randomisation and randomisation without repetition show two different approaches.

---

_[View the full topic](https://discourse.psychopy.org/t/pseudorandomization-without-repeating-trials-of-a-category-within-a-block/46987)._
