rndlib
Version:
Easy to use randomizer functions with TypeScript support
12 lines (11 loc) • 504 B
TypeScript
/**
* Return a random number between min and max values, but distribution of the values resembles normal distribution.
*
* This does not follow proper mathematical normalized deviation, but is an approximation.
*
* @param min number Bottom limit of the normalized rand
* @param max number Top limit of the normalized rand
* @param ramp 0-10 Higher the number, then more aggressive the curve
* @returns
*/
export declare function nrnd(min: number, max: number, ramp?: number): number;