> For the complete documentation index, see [llms.txt](https://docs.origami.tech/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.origami.tech/function/functions/random.md).

# Random

## <mark style="color:purple;">`random`</mark>() -> *decimal*

returns random decimal value in range <mark style="color:red;">`[0, 1]`</mark>

{% hint style="warning" %}
Be careful using this function in execute\_price or execute\_volume. Usage without cached will lead to unstoppable recreate of the grid.
{% endhint %}
