@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
8 lines • 470 B
TypeScript
/**
* Returns a random number within a normal distribution (Bell/Gaussian curve)
* @param {number} [quality=6] controls number of "die rolls" used to approximate curve, more rolls - better approximation but higher cost of computation
* @param {function():number} random
* @returns {number} value between 0 and 1 with normal weight at 0.5
*/
export function randomGaussian(random: () => number, quality?: number): number;
//# sourceMappingURL=randomGaussian.d.ts.map