diff --git a/packages/random/src/distributions/exponential.ts b/packages/random/src/distributions/exponential.ts index 3570a49da3..a99157fc75 100644 --- a/packages/random/src/distributions/exponential.ts +++ b/packages/random/src/distributions/exponential.ts @@ -11,5 +11,5 @@ import { SYSTEM } from "../system"; * @param rnd * @param lambda - event interval [0,Inf) */ -export const exponential = (rnd: IRandom = SYSTEM, lambda = 10) => () => - lambda === 0 ? () => Infinity : -Math.log(1 - rnd.float(1)) / lambda; +export const exponential = (rnd: IRandom = SYSTEM, lambda = 10) => + lambda === 0 ? () => Infinity : () => -Math.log(1 - rnd.float(1)) / lambda;