> For the complete documentation index, see [llms.txt](https://lochiwei.gitbook.io/web/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lochiwei.gitbook.io/web/js/val/prim/num/random/randomfloat.md).

# randomFloat()

{% tabs %}
{% tab title="randomFloat()" %}

```javascript
// min ..< max (exclusive)
export function randomFloat(min, max){
    return Math.random() * (max - min) + min;
}
```

{% endtab %}

{% tab title="Second Tab" %}

{% endtab %}
{% endtabs %}
