There are several distributions available, according to your needs.
You can view each one plotted on a graph on the distributions examples page.
See the code documentation for complete calling signature.
rng.bates({ n?: number });
rng.chancy({ type: 'bates', n?: number });
See the code documentation for complete calling signature.
rng.bernoulli({ p?: number });
rng.chancy({ type: 'bernoulli', p?: number });
See the code documentation for complete calling signature.
rng.beta({ alpha?: number, beta?: number });
rng.chancy({ type: 'beta', alpha?: number, beta?: number });
See the code documentation for complete calling signature.
rng.betaBinomial({ alpha?: number, beta?: number, n?: number });
rng.chancy({ type: 'betaBinomial', alpha?: number, beta?: number, n?: number });
See the code documentation for complete calling signature.
rng.binomial({ n?: number, p?: number });
rng.chancy({ type: 'binomial', n?: number, p?: number });
See the code documentation for complete calling signature.
rng.boxMuller({ mean?: number, stddev?: number });
rng.chancy({ type: 'boxMuller', mean?: number, stddev?: number });
See the code documentation for complete calling signature.
rng.cauchy({ median?: number, scale?: number });
rng.chancy({ type: 'cauchy', median?: number, scale?: number });
See the code documentation for complete calling signature.
rng.chiSquared({ k?: number });
rng.chancy({ type: 'chiSquared', k?: number });
See the code documentation for complete calling signature.
rng.exponential({ rate?: number });
rng.chancy({ type: 'exponential', rate?: number });
See the code documentation for complete calling signature.
rng.gamma({ shape?: number, rate?: number, scale?: number });
rng.chancy({ type: 'gamma', shape?: number, rate?: number, scale?: number });
See the code documentation for complete calling signature.
rng.gaussian({ mean?: number, stddev?: number, skew?: number });
rng.chancy({ type: 'gaussian', mean?: number, stddev?: number, skew?: number });
See the code documentation for complete calling signature.
rng.hermite({ lambda1?: number, lambda2?: number });
rng.chancy({ type: 'hermite', lambda1?: number, lambda2?: number });
See the code documentation for complete calling signature.
rng.hypergeometric({ N?: number, K?: number, n?: number, k?: number });
rng.chancy({ type: 'hypergeometric', N?: number, K?: number, n?: number, k?: number });
See the code documentation for complete calling signature.
rng.irwinHall({ n?: number });
rng.chancy({ type: 'irwinHall', n?: number });
See the code documentation for complete calling signature.
rng.kumaraswamy({ alpha?: number, beta?: number });
rng.chancy({ type: 'kumaraswamy', alpha?: number, beta?: number });
See the code documentation for complete calling signature.
rng.laplace({ mean?: number, scale?: number });
rng.chancy({ type: 'laplace', mean?: number, scale?: number });
See the code documentation for complete calling signature.
rng.logistic({ mean?: number, scale?: number });
rng.chancy({ type: 'logistic', mean?: number, scale?: number });
See the code documentation for complete calling signature.
rng.logNormal({ mean?: number, stddev?: number });
rng.chancy({ type: 'logNormal', mean?: number, stddev?: number });
See the code documentation for complete calling signature.
rng.pareto({ shape?: number, scale?: number, location?: number });
rng.chancy({ type: 'pareto', shape?: number, scale?: number, location?: number });
See the code documentation for complete calling signature.
rng.poisson({ lambda?: number });
rng.chancy({ type: 'poisson', lambda?: number });
See the code documentation for complete calling signature.
rng.rademacher();
rng.chancy({ type: 'rademacher' });
See the code documentation for complete calling signature.
rng.rayleigh({ scale?: number });
rng.chancy({ type: 'rayleigh', scale?: number });
See the code documentation for complete calling signature.
rng.studentsT({ nu?: number });
rng.chancy({ type: 'studentsT', nu?: number });
See the code documentation for complete calling signature.
rng.wignerSemicircle({ R?: number ;
rng.chancy({ type: 'wignerSemicircle', R?: number ;