Random.pick()
Pick randomly between the two numbers given as parameter
Parameters
Name | Type | Description | |
---|---|---|---|
1 | value1 | number | |
2 | value2 | number |
Return value
number
the result
Usage
import {Random} from '@lcluber/type6js';
let pick = random.pick(2, 4);
console.log(pick); //2