# Random Draw

Randomly select items from a list or generate random numbers. Supports weighted selection for probability-based draws.

## Plan availability

| Feature | Free | Starter | Pro | Enterprise |
| --- | --- | --- | --- | --- |
| Active workflows | 3 | 10 | 45 | Unlimited |

Allowances follow the [published Chatigram pricing page](https://chatigram.com/pricing/). Your organization’s Billing & Plans screen confirms its subscription and current usage. Plans can change. Plan information reviewed 2026-11-10.


## When to use this node

Randomly select items from a list or generate random numbers. Supports weighted selection for probability-based draws.

Add **Random Draw** to a workflow branch using the node picker. Configure its fields in the inspector, then connect the next step.

## Configure the fields

| Field | What to enter |
| --- | --- |
| **Selection Mode** | Choose the type of random selection:<br>• items (default): Select from a list of items<br>• number: Generate random number(s) in a range<br><br>For 'items' mode, use the 'items' field.<br>For 'number' mode, use 'rangeMin' and 'rangeMax' fields.<br>Choices: `items`, `number`.<br>Example/default shown in the editor: `items`. |
| **Items List** | Comma-separated list of items to randomly select from.<br><br>📋 Simple Selection (equal probability):<br>• item1, item2, item3, item4<br>• apple, banana, cherry<br>• 100, 200, 300, 400<br><br>⚖️ Weighted Selection (custom probabilities):<br>• item1:1, item2:2, item3:5 (item3 has 5x chance vs item1)<br>• red:3, blue:2, green:1<br>• winner:1, runner-up:3, participant:10<br><br>💡 Tips:<br>• Higher weight = higher chance of selection<br>• Weights can be decimals (e.g., item1:1.5, item2:2.3)<br>• Items without weights default to weight of 1<br>• Items can contain spaces, numbers, special characters<br><br>Used when mode is 'items'. |
| **Range Minimum** | Minimum value for random number generation.<br>Can be integer or decimal (e.g., 1, 0, -10, 1.5, 0.001).<br>Used when mode is 'number'. |
| **Range Maximum** | Maximum value for random number generation.<br>Can be integer or decimal (e.g., 100, 1000, 99.9).<br>Used when mode is 'number'. |
| **Number of Results** | How many items/numbers to randomly select.<br>• Default: 1 (single result)<br>• Multiple results will be comma-separated<br>• For items mode: cannot exceed total number of unique items<br>• For number mode: can generate any count<br><br>Examples:<br>• count=1: returns 'item3'<br>• count=3: returns 'item2, item5, item1'<br>Example/default shown in the editor: `1`. |

## Use the result

Choose the output from the variable picker in a later step. Output names below identify the values supplied by this node; the picker inserts the correct reference for your node instance.

| Output | Meaning / label |
| --- | --- |
| `result` | Selected Result(s) |
| `first` | First Selected Item |
| `count` | Number of Results |
| `mode` | Selection Mode Used |
| `totalItems` | Total Items Available |
| `weighted` | Was Weighted (yes/no) |

## Connect the next step

Connect the continuation shown on the canvas. Some nodes calculate their branches from the configured options. Read each branch label in the editor and connect the paths your workflow needs.

## Test it in a workflow

1. Configure this node with a small, recognizable test input or a test resource.
2. Check the variables from preceding steps and the connection selected in the inspector.
3. Save the workflow. For event-driven flows, generate the actual event; use **Run** only for a Manual workflow.
4. Open **Workflow Activity** and check the outcome before enabling wider use.

## If something goes wrong

- Check empty variables, selected resource IDs, and any fields that appeared after resource selection.
- Check the failed step in Workflow Activity before retrying. If the action may already have completed, inspect the destination first to avoid duplicates.
- Follow the [troubleshooting guide](/help/troubleshooting/) for a symptom-by-symptom checklist.

## Related guides

- [Work with variables](/workflows/variables/)
- [Understand branches and error handling](/workflows/branches/)
- [Browse all nodes](/reference/nodes/)



## Catalog coverage

This is the currently documented selection. Chatigram continues to add nodes, triggers, App Connections, and integrations. Use each page’s review date and the current application selectors to check what is available now; this catalog is not a fixed limit on future features.
