UNPKG

@syntest/core

Version:

The common core of the SynTest Framework

24 lines 852 B
import BigNumber from "bignumber.js"; export declare function getSeed(): string; /** * The global random generator. * * @author Dimitri Stallenberg */ export declare const prng: { nextBoolean: (trueChance?: number) => boolean; nextInt: (min?: number, max?: number) => number; nextBigInt: (min?: BigNumber, max?: BigNumber) => BigNumber; nextDouble: (min?: number, max?: number) => number; nextBigDouble: (min?: BigNumber, max?: BigNumber) => BigNumber; /** * Uses the Box-Muller transform to get a gaussian random variable. * * Based on: * https://en.wikipedia.org/wiki/Box%E2%80%93Muller_transform */ nextGaussian: (mu?: number, sigma?: number) => number; pickOne: <T>(options: T[]) => T; uniqueId: (length?: number, characters?: string) => string; }; //# sourceMappingURL=prng.d.ts.map