js-util

Home > rc-js-util > mathBoundRandom

mathBoundRandom() function

Create a random value between min and max.

Signature:

export declare function mathBoundRandom(min: number, max: number): number;

Parameters

Parameter Type Description
min number  
max number  

Returns:

number

Remarks

NaN input will cause a debug error. Max greater than min will cause a debug error.

See mathBoundRandom().