# Counterbalance - Across participants

**URL:** <https://discourse.psychopy.org/t/counterbalance-across-participants/29959>\
**Category:** Builder\
**Created:** [July 11, 2022, 11:08am UTC](https://discourse.psychopy.org/t/counterbalance-across-participants/29959 "2022-07-11T11:08:28Z")\
**Posts on this page:** 1\
**Showing post:** 8

<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:** [July 21, 2022, 6:10am UTC](https://discourse.psychopy.org/t/counterbalance-across-participants/29959/8 "2022-07-21T06:10:13Z")

</div>

Please note that the code will result in a particular UNeven distribution of participants to groups. Please see my previous post about this code.

> [@Random assignment of participants to groups](https://discourse.psychopy.org/t/random-assignment-of-participants-to-groups/18328/8):
>
> Hi Jens, In words, you’ve written: if divisible by 1 else if divisible by 3 else if divisible by 2 else. Here are how the first 20 participants will be divided: 1; 5; 7; 11; 13; 17; 19 = 7 participants 2; 10; 14 = 3 participants 3; 6; 9; 15; 18 = 5 participants 4; 8; 12; 16; 20 = 5 participants Please correct me if you think I’ve got that wrong. Participant 0 (if you have one) would be allocated to group 4. My method is to divide by 4 and use the remainder which will equally be 0, 1, 2 or …

---

_[View the full topic](https://discourse.psychopy.org/t/counterbalance-across-participants/29959)._
