# Randomisation across repeated blocks

**URL:** <https://discourse.psychopy.org/t/randomisation-across-repeated-blocks/33874>\
**Category:** Builder\
**Created:** [March 16, 2023, 1:45pm UTC](https://discourse.psychopy.org/t/randomisation-across-repeated-blocks/33874 "2023-03-16T13:45:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ShefSam](https://avatars.discourse-cdn.com/v4/letter/s/258eb7/32.png) [@ShefSam](https://discourse.psychopy.org/u/ShefSam)\
**Post date:** [March 16, 2023, 1:45pm UTC](https://discourse.psychopy.org/t/randomisation-across-repeated-blocks/33874/1 "2023-03-16T13:45:44Z")

</div>

Hi  
I’ve created an experiment in Builder (v 2022.2.5) I need to present 200 words in random order from a list in my conditions file in 8 blocks of 25 words . I’ve set this up as per the images. Each block of 25 trials is randomly sampled without replacement, however at the moment words repeat across blocks which I do not want to happen.

Note: I am a coding novice, the small amount of code I’ve used is a direct copy from Psychopy textbook!  
Note 2: The buffer routines are for 2 buffer trials either side of each 25 word block

 ![CB5E09E4-57EF-405C-AF93-1BA2102DB6C1_4_5005_c](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/0/d/0d41f5970c7982f832f1f5ac1c97b997d9499591.jpeg)

![CB1285AD-839D-4384-A828-F69C474A7747](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/3/e/3e0556c41c4071a097ad44ea9620aa1a9dfb634c.jpeg)

I’ve tried inputting adjusted code from the following thread in a routine before the experiment however the repetition still occurred.  
[https://discourse.psychopy.org/t/random-without-replacement-over-multiple-blocks/13129](https://discourse.psychopy.org/t/random-without-replacement-over-multiple-blocks/13129)

I haven’t been able to find another topic / thread which covered this problem. Any help much appreciated!

---

<div class="post-metadata">

**Author:** ![hunterb1005](https://avatars.discourse-cdn.com/v4/letter/h/4491bb/32.png) [@hunterb1005](https://discourse.psychopy.org/u/hunterb1005)\
**Post date:** [March 16, 2023, 2:59pm UTC](https://discourse.psychopy.org/t/randomisation-across-repeated-blocks/33874/2 "2023-03-16T14:59:25Z")

</div>

It has been a while since we’ve programmed these studies using PsychoPy / Pavlovia. Try emailing my grad student, Phil ([philip.peper@mavs.uta.edu](mailto:philip.peper@mavs.uta.edu)). He might have a more recent version of the task that he could send you. Not sure if it will help or not.

---

<div class="post-metadata">

**Author:** ![ShefSam](https://avatars.discourse-cdn.com/v4/letter/s/258eb7/32.png) [@ShefSam](https://discourse.psychopy.org/u/ShefSam)\
**Post date:** [March 19, 2023, 9:53am UTC](https://discourse.psychopy.org/t/randomisation-across-repeated-blocks/33874/3 "2023-03-19T09:53:41Z")

</div>

Thank you very much for responding! I will try emailing Phil.
