# RandomReal (Int)

| **Name**    | ***RandomReal***                                                                                           |
| ----------- | ---------------------------------------------------------------------------------------------------------- |
| Syntax      | RandomReal (Integer min, Integer max)                                                                      |
| Purpose     | To generate a random number.                                                                               |
| Description | Generates a random number within a range defined by min and max values.                                    |
| Return Type | Real                                                                                                       |
| Parameters  | <p>min \[System.Int32] – Minimum number to return</p><p>max \[System.Int32] – Maximum number to return</p> |

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FXfMN5DY0JE0hQ9zgzzg7%2F0.png?alt=media)

**Example**

In this example, we are passing *min* and *max* values to the function transformation object using a *Variables* object.

Where,

*min* = 1

*max* = 5

<figure><img src="https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2F2HKsKxzJCfJiyyPA3rpm%2F1.png?alt=media" alt=""><figcaption></figcaption></figure>

In the *Data Preview* window, you can see that a random real value, which falls within the provided *min* and *max* values, has been generated.

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2F1K7fOitDgowzTKoGCC9W%2F2.png?alt=media)
