UNPKG

everyutil

Version:

A comprehensive library of lightweight, reusable utility functions for JavaScript and TypeScript, designed to streamline common programming tasks such as string manipulation, array processing, date handling, and more.

9 lines (8 loc) 379 B
/** * Returns a random number from a normal (Gaussian) distribution. * @author @dailker * @param {number} [mean=0] - The mean of the distribution. * @param {number} [std=1] - The standard deviation of the distribution. * @returns {number} A random number from the normal distribution. */ export declare function randomGaussian(mean?: number, std?: number): number;