Random.distribution()
Compute random distribution with min, max and iteration numbers given as parameters
Parameters
Name | Type | Description | |
---|---|---|---|
1 | min | number | |
2 | max | number | |
3 | iterations | number |
Return value
number
the result
Usage
import {Random} from '@lcluber/type6js';
let distribution = random.distribution(2, 10, 8);
console.log(distribution); //5.45