Random.float()
Return a random floating number between min and max numbers given as parameters
Parameters
Name | Type | Description | |
---|---|---|---|
1 | min | number | |
2 | max | number |
Return value
number
the result
Usage
import {Random} from '@lcluber/type6js';
let float = random.float(2, 6);
console.log(float); //5.45