Random.distribution()

Compute random distribution with min, max and iteration numbers given as parameters

Parameters

NameTypeDescription
1minnumber
2maxnumber
3iterationsnumber

Return value

number

the result

Usage

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

let distribution = random.distribution(2, 10, 8);
console.log(distribution); //5.45