1 | /**
|
2 | * A mechanism to retrieve random int32 values
|
3 | */
|
4 | export interface Engine {
|
5 | next(): number;
|
6 | }
|
7 | /**
|
8 | * A function to use an `Engine` to produce a value
|
9 | */
|
10 | export declare type Distribution<T = number> = (engine: Engine) => T;
|
11 | /**
|
12 | * A function to use an `Engine` to produce a string of a requested length
|
13 | */
|
14 | export declare type StringDistribution = (engine: Engine, length: number) => string;
|