> ## Documentation Index
> Fetch the complete documentation index at: https://learn.workflow.dog/llms.txt
> Use this file to discover all available pages before exploring further.

# Random Number

> Generate a random decimal or whole number within a range.

The **Random Number** action first generates a pseudorandom decimal from
**Min** inclusive up to **Max** exclusive. Whole-number mode floors that value.

## Inputs

| Input                   | Type    | Required | Description                                      |
| ----------------------- | ------- | -------- | ------------------------------------------------ |
| **Min**                 | Number  | Yes      | The inclusive lower end of the range.            |
| **Max**                 | Number  | Yes      | The exclusive upper end of the range.            |
| **Only Whole Numbers?** | Boolean | No       | Floors the generated value. Defaults to `false`. |

## Outputs

| Output     | Type   | Description                           |
| ---------- | ------ | ------------------------------------- |
| **Random** | Number | A newly generated value in the range. |

With integer boundaries **Min** `1`, **Max** `7`, and whole numbers enabled,
the possible outputs are `1` through `6`.

<Note>
  This action uses general-purpose pseudorandom selection. It is not suitable
  for security-sensitive tokens, secrets, or cryptographic use.
</Note>

<Note>
  Whole-number mode uses floor rather than choosing integers from adjusted
  bounds. A fractional minimum can therefore produce a whole number below that
  minimum; for example, values starting at `1.5` can floor to `1`.
</Note>

<Warning>
  Use **Min** less than **Max**. Reversing the range changes the arithmetic and,
  with whole numbers enabled, can produce values outside the intuitive bounds.
</Warning>
