Function weightedIntegerSource

Random integer, weighted according to an easing function. Number will be inclusive of min and below max.

import * as Random from 'https://unpkg.com/ixfx/dist/random.js';
const r = Random.weightedIntegerFn(100);
r(); // Produce value
const r = Random.weightedIntegerFn({ min: 20, max: 30 });
r(); // Produce value
const r = Random.weightedInteger({ max: 100, easing: `quadIn` });

Note: result from easing function will be clamped to the min/max (by default 0-1);