Use Random Numbers in Zapier Zaps
Zapier lets you generate and use random numbers directly in your Zaps so you can build more dynamic, flexible workflows. This guide explains how to select a random number in a Zap using built-in tools, without writing code.
You will learn where the random number feature lives, how to configure it safely, and how to use the output in later Zapier steps for routing, sampling, and more.
How random numbers work in Zapier
Inside Zapier, random numbers are created with a dedicated action step in the Formatter app. Formatter provides utilities such as text, number, and date transformations. One of its options lets you generate a single random integer within a numeric range.
Every time your Zap runs, this action produces a new value that stays consistent for that run and can be passed to following steps.
Prerequisites before you start in Zapier
Before adding a random number step, make sure you have:
- A Zapier account and access to the editor.
- At least one trigger app connected.
- Permissions to edit or create Zaps in your workspace.
You do not need any extra app connection to use Formatter in Zapier because it is available to all users by default.
Step-by-step: select a random number in Zapier
Follow these steps to add a random number generator action to any Zap.
1. Open your Zap in the Zapier editor
- Log in to your Zapier account.
- Create a new Zap or open an existing one.
- Confirm your trigger step is configured and successfully tested.
The random number action must come after your trigger (and any other steps that need to run first).
2. Add the Formatter by Zapier app
- Click + Add action under your trigger.
- Search for Formatter and select Formatter by Zapier.
- In the event or transform dropdown, choose the number-related option that includes random number generation (commonly found under Number utilities).
This connects the Formatter action into your Zap so it can calculate a random result during each run.
3. Set the minimum and maximum values
In the Formatter action fields, you will see inputs for the range of the random number. Typical fields include:
- Minimum – the lowest integer you want the random result to be.
- Maximum – the highest integer you want the random result to be.
Guidelines:
- Use whole numbers only because the action returns integers.
- Ensure the minimum value is less than or equal to the maximum value.
- Avoid extremely large ranges if you do not need them, to keep logic simple in later steps.
You can enter static numbers (for example, 1 and 100) or map values from earlier Zapier steps if your range must be dynamic.
4. Test the Formatter step
- Click Test or Test step in the editor.
- Zapier runs the Formatter action and generates one random number in the range you set.
- Confirm that the output looks correct. You should see a single integer in the test data.
If the value is outside your range or the step fails, review the minimum and maximum fields and verify that they are valid numbers.
5. Use the random number in later Zapier steps
Once the Formatter action is successful, its output becomes available in downstream steps of your Zap.
You can use the random integer to:
- Route items to different paths (for example, Path A, B, or C) based on ranges.
- Randomly assign leads or tickets to team members.
- Perform A/B or multi-variant testing within Zapier workflows.
- Select a random record when combined with lookup or filter logic.
In any following step, open the data dropdown, locate the Formatter by Zapier step, and insert the random number field where needed.
Common use cases for random numbers in Zapier
Random assignment in Zapier workflows
You can use the generated number to distribute tasks or leads evenly. For example, create a range from 1 to 3 and map each value to a teammate:
- 1 = Teammate A
- 2 = Teammate B
- 3 = Teammate C
This pattern helps automate round-robin routing logic directly inside a Zapier automation.
Sampling and A/B testing in Zapier
For simple experiments, generate a random number from 1 to 2 or 1 to 100 and use filters or paths:
- Send a contact to Version A when the number is in one range.
- Send the same contact to Version B for a different range.
This approach is helpful when you want lightweight testing without complex external tools, while still leveraging Zapier automation.
Randomized delays or thresholds
You may want to stagger actions or notifications so they do not all occur at the same time. Use a random number and then pass it to a delay or calculation step to vary timing or thresholds inside Zapier.
Best practices for using random numbers in Zapier
- Document your ranges: Add notes in step descriptions that explain what each range or value represents.
- Test multiple times: Run test data several times to confirm that values vary and remain inside your desired range.
- Keep ranges manageable: Smaller ranges are easier to map to decisions and actions in your Zapier logic.
- Combine with filters and paths: Use the random number together with filters or path conditions for more robust workflows.
Troubleshooting random numbers in Zapier
Formatter step returns an error
If the Formatter by Zapier action fails:
- Check that the minimum and maximum fields are not empty.
- Confirm both fields use numeric values only.
- Make sure the minimum is not greater than the maximum.
Random value does not appear in later steps
If you do not see the output when configuring a later Zapier step:
- Ensure the Formatter step is located earlier in the workflow than the step you are editing.
- Re-test the Formatter step so that fresh sample data is available.
- Use the field search box in the data picker to look for the random number output name.
More resources for Zapier automation
To go deeper into random numbers and see the original documentation, review the official guide on selecting a random number in Zaps on the Zapier Help Center: Select a random number in Zaps.
If you need expert help designing complex workflows, automation strategy, or SEO-optimized content that explains Zapier processes to your team, you can also visit Consultevo for consulting and implementation services.
By combining Formatter by Zapier with filters, paths, and your favorite apps, you can turn simple random numbers into powerful automation logic throughout your workspace.
Need Help With Zapier?
Work with ConsultEvo — a
Zapier Certified Solution Partner
helping teams build reliable, scalable automations that actually move the business forward.
