# Simple pseudorandomisation of text stimuli

**URL:** <https://discourse.psychopy.org/t/simple-pseudorandomisation-of-text-stimuli/31618>\
**Category:** Builder\
**Tags:** randomization\
**Created:** [October 28, 2022, 9:49pm UTC](https://discourse.psychopy.org/t/simple-pseudorandomisation-of-text-stimuli/31618 "2022-10-28T21:49:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JJMS](https://avatars.discourse-cdn.com/v4/letter/j/8c91f0/32.png) [@JJMS](https://discourse.psychopy.org/u/JJMS)\
**Post date:** [October 28, 2022, 9:49pm UTC](https://discourse.psychopy.org/t/simple-pseudorandomisation-of-text-stimuli/31618/1 "2022-10-28T21:49:24Z")

</div>

I have a simple experiemnt which displays text stimuli. The stimuli consist of 60 words, but each is presented 3 times (at different latencies), so with a random order, sometimes the same word comes up twice in a row.

Does anyone know of an easy way to pseudorandomise the order (e.g. prohibiting the current trial from having an identical stimuli to the last)? Thanks for any tips!

Best,

Jade

---

<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:** [October 29, 2022, 7:38am UTC](https://discourse.psychopy.org/t/simple-pseudorandomisation-of-text-stimuli/31618/2 "2022-10-29T07:38:09Z")

</div>

Have a look at my randomisation without repetition online demo

> [@Randomise stimuli without consecutive presentation](https://discourse.psychopy.org/t/randomise-stimuli-without-consecutive-presentation/24343):
>
> Hi, I am programming a psychological experiment. In every trial, they read a scenario and see a face photo and hear an answer for the scenario. Scenarios are 20. And there are 4 conditions for the scenarios. (Happy face-Happy sound, Neutral face-Happy sound, Happy face-Neutral sound, Neutral face-Neutral sound) Therefore, All trials are 80. (Scenario 20 \* Condition 4) The point is I need to randomize scenario order without repeating stimuli twice in a row. My problem is that the “random t…
