# Survey randomisation

**URL:** <https://discourse.psychopy.org/t/survey-randomisation/46776>\
**Category:** Online experiments\
**Created:** [March 10, 2026, 11:26am UTC](https://discourse.psychopy.org/t/survey-randomisation/46776 "2026-03-10T11:26:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![imogen123](https://avatars.discourse-cdn.com/v4/letter/i/3e96dc/32.png) [@imogen123](https://discourse.psychopy.org/u/imogen123)\
**Post date:** [March 10, 2026, 11:26am UTC](https://discourse.psychopy.org/t/survey-randomisation/46776/1 "2026-03-10T11:26:15Z")

</div>

**OS** (e.g. Win10):  
**PsychoPy version** (e.g. 2024.2.4 Py 3.8):  
**Standard Standalone Installation? (y/n)** If not then what?:  
**URL of experiment:**  
**Do you want it to also run locally? (n)**  
**What are you trying to achieve?: randomise order of 4 surveys in Pavlovia**

**What did you try to make it work?: I tried two things - (1) separate survey routines (each exported from a separate pavlovia survey) for each survey - in a loop, with a gatekeeper for each routine with code to try to randomise - could not get it to randomise - tried all sorts of things (2) created one survey on Pavlovia with each of the four surveys on a separate page, and tried to randomise the pages - but could not manage to randomise the pages - n is this possible?**

**Link to the most relevant existing thread you have found:**

Existing threads are quite old and refer to previous versions - have there been any updates since then?

**What specifically went wrong when you tried that?:**  
There are no error messages - in both cases (1) and (2) above the surveys play in order. In the case of (1) the loop then repeats incessantly

---

<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:** [March 10, 2026, 12:46pm UTC](https://discourse.psychopy.org/t/survey-randomisation/46776/2 "2026-03-10T12:46:22Z")

</div>

> [@imogen123](#):
>
> gatekeeper

How did you do this? I would recommend an inner loop around each survey.

---

<div class="post-metadata">

**Author:** ![imogen123](https://avatars.discourse-cdn.com/v4/letter/i/3e96dc/32.png) [@imogen123](https://discourse.psychopy.org/u/imogen123)\
**Post date:** [March 10, 2026, 9:29pm UTC](https://discourse.psychopy.org/t/survey-randomisation/46776/3 "2026-03-10T21:29:28Z")

</div>

yes that worked - thanks so much!
