# Unit of Assignment

## Individual Assignment

<div data-with-frame="true"><figure><img src="https://3050725078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNnmFz64ePQKUO5nQphcc%2Fuploads%2FRuNy1KHQ0178gs7mD9v1%2FScreenshot%202026-01-26%20at%203.23.58%E2%80%AFPM.png?alt=media&#x26;token=99eda7ba-73f4-4793-a40c-7171720ddd99" alt=""><figcaption></figcaption></figure></div>

When selecting individual assignment, each included participant will be randomly assigned a condition.

## Group Assignment

<div data-with-frame="true"><figure><img src="https://3050725078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNnmFz64ePQKUO5nQphcc%2Fuploads%2FW79pVCqfRmwHxDRbd210%2FScreenshot%202026-01-26%20at%203.23.22%E2%80%AFPM.png?alt=media&#x26;token=fb2330a0-3117-450e-94b5-a25994db2398" alt=""><figcaption></figcaption></figure></div>

Group assignment references one or more of the group types that have been previously defined in the [Context Metadata](https://upgrade-platform.gitbook.io/upgrade-documentation/developer-guide/reference/context-metadata). For the selected group type, each group will be randomly assigned a condition, and each participant in a group will receive the same condition as the rest of the group.

## Within-Subjects Assignment

<div data-with-frame="true"><figure><img src="https://3050725078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNnmFz64ePQKUO5nQphcc%2Fuploads%2FJbNs9i5yJaguMs5RqG0r%2FScreenshot%202026-01-26%20at%203.26.40%E2%80%AFPM.png?alt=media&#x26;token=c464a7ba-006c-43bb-921f-5fd67a051283" alt=""><figcaption></figcaption></figure></div>

In within-subjects assignment, every time a participant visits a decision point (and `/markExperimentPoint` is called), the participant is eligible to receive a new condition. There are different options for determining the order of such conditions for within-subjects experiments. Random will randomly select a condition each time the decision point has been marked. Random Round Robin will randomly order the experiment conditions, and when it runs out of conditions, will create a new random ordering. Ordered Round Robin will deliver the same sequence of conditions over and over again.
