---
title: "rand"
canonical: "https://support.appfire.com/space/PSJC/433000695/rand"
format: markdown
---
> Macro (aura-html)


## Description

> Macro (excerpt)
> 
> Returns a random number between 0.00 and 1.00.

Returns a random number between 0.00 and 1.00.

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | rand() | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Return Type

**Number**

## Example

```javascript
number a = rand();
print("a= " + a);
```

Prints: a= 0.2655790724320535;

## See also

> Macro (contentbylabel)