# Generate Random Numer

![](/files/UUEgpjITDVxb6W5jpUS3)

{% tabs %}
{% tab title="Entry Vars" %}
**max number :**  You must enter a numeric type value from which a maximum reference will be taken to generate the random number.

**min number :** A numeric type value must be entered from which the initial reference will be taken to generate the random number.

**Step by Step :**

<figure><img src="/files/mlAuSRJHZf9GIaljcgL2" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Callbacks & Outvar" %}
**successfully generated :** It is executed when the generated random number is returned.

OutVars&#x20;

`Null`

**onError :** It is executed when one of the entered values ​​contradicts the function, that is, if the maximum number is less than the minimum or they are not of a numerical type.

OutVars&#x20;

`Null`
{% endtab %}

{% tab title="Features" %}

{% endtab %}

{% tab title="examples" %}

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.apphive.io/reference/funciones/logic-e/generate-random-numer.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
