Random.pick()

Pick randomly between the two numbers given as parameter

Parameters

NameTypeDescription
1value1number
2value2number

Return value

number

the result

Usage

import {Random} from '@lcluber/type6js';

let pick = random.pick(2, 4);
console.log(pick); //2