stack

Home > @infiniteobjects/core-library-web > Random > float

Random.float() method

Produce a floating point number within the range

Signature:

static float(min: number, max: number, inclusive?: boolean): number;

Parameters

Parameter Type Description
min number  
max number  
inclusive boolean (Optional) Set true to include the min and max in the possible results

Returns:

number