# Randomizer

> Split contacts across paths by percentage, to compare two greetings, offers or ways of asking.

Sends each run down one of its paths at random, in the proportions you set. Use it for A/B tests: two greetings, two offers, two ways of asking for an e-mail.



## Paths

Each path has a name and a **Share** in whole percent. The shares must add up to 100 % (the panel shows the **Total**); **Split evenly** divides them equally. You need at least two paths, and can have up to ten.

Every run draws again: the same contact writing twice may land on different paths. To keep someone on the variant they got, save it in a variable kept on the contact (with [Set variable](https://nomongeta.zenhalab.com/www/nomongeta/en/docs/flow-builder/set-variable) right after each path) and check it with a [Condition](https://nomongeta.zenhalab.com/www/nomongeta/en/docs/flow-builder/condition) before the randomizer.

## Outputs

| Output | When |
| --- | --- |
| One per path | Drawn for this run. |

## Measuring the result

Tag the contact on each path with [Update contact](https://nomongeta.zenhalab.com/www/nomongeta/en/docs/flow-builder/contact-update) (`greeting-a`, `greeting-b`), and tag the outcome you care about further down (`booked`). The contacts list of the [REST API](https://nomongeta.zenhalab.com/www/nomongeta/en/docs/developers/rest-api) filters by tag, so you can count how many contacts of each variant reached the outcome.
