---
title: "random"
canonical: "https://support.appfire.com/space/PSJ/15489241/random"
format: markdown
---
> Macro (aura-html)


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | random(number) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Returns a random **int** value between 0 (inclusive) and the specified value (exclusive). This works for integers only.

Returns a random **int** value between 0 (inclusive) and the specified value (exclusive). This works for integers only.  
 

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| number | Number | Yes | Number to get the random **int** value for. |

## Return Type

**Number**

## Example

```
number a = random(4);
print("a= " + a);
```

Prints: a= 3;

## See also

> Macro (contentbylabel)