# Random Number Generator

Generates a random number within a specified range. Random Number Generator lives in the **Custom** category of the `fx` menu.

## Parameters

| Parameter     | Type    | Required | Default | Description                                            |
| ------------- | ------- | -------- | ------- | ------------------------------------------------------ |
| Input         | string  | yes      | —       | Value to transform. Previous step output or a literal. |
| Minimum value | number  | no       | `0`     | The minimum value for the random number (inclusive)    |
| Maximum value | number  | no       | `100`   | The maximum value for the random number (inclusive)    |
| Integer only  | boolean | no       | `true`  | Generate only integer numbers                          |

`Input` is the primary value (previous step output or a literal).

## Returned value

| Type     | Description                                           |
| -------- | ----------------------------------------------------- |
| `number` | Result of the Random Number Generator transformation. |

## Example

<details>
<summary>Run Random Number Generator</summary>

Generates a random number within a specified range. Adjust optional parameters when the defaults do not match your payload.

1. Set **Input** to the value to transform (previous step output or a literal).

2. Review **Minimum value**, **Maximum value**, **Integer only** and keep defaults unless your format requires otherwise.

3. Confirm **Output value** shows the transformed result.

</details>
