<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [rc-js-util](./rc-js-util.md) &gt; [mathBoundRandom](./rc-js-util.mathboundrandom.md)

## mathBoundRandom() function

Create a random value between min and max.

**Signature:**

```typescript
export declare function mathBoundRandom(min: number, max: number): number;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

min


</td><td>

number


</td><td>


</td></tr>
<tr><td>

max


</td><td>

number


</td><td>


</td></tr>
</tbody></table>
**Returns:**

number

## Remarks

NaN input will cause a debug error. Max greater than min will cause a debug error.

See [mathBoundRandom()](./rc-js-util.mathboundrandom.md)<!-- -->.

