# Chance

> Branch at random, by a percentage.

Source: https://docs.buildcord.dev/nodes/conditions/chance/

`logic.random` takes the **Hit** way out a set percentage of the time.

## Settings

| Setting | What it does |
| --- | --- |
| Chance of a hit (%) | The odds of a hit. The default is 50. |

## Ways out

`Hit` and `Miss`.

## Notes

- Each run rolls independently. Ten runs at 50% won't always give five hits.
- The canvas shows `50% chance`.
- To pick one of several lines instead, use [Random reply](https://docs.buildcord.dev/nodes/messages/random-reply).

## Example

At 5%, give a rare bonus from a `/daily` command.

## Related

- [Random reply](https://docs.buildcord.dev/nodes/messages/random-reply)
