selfcarebot/node_modules/random/dist/rng.d.ts

10 lines
417 B
TypeScript
Raw Normal View History

2023-03-31 03:22:50 +00:00
export type SeedFn = () => number;
export type SeedType = number | string | SeedFn | RNG;
export default abstract class RNG {
abstract get name(): string;
abstract next(): number;
abstract seed(_seed?: SeedType, _opts?: Record<string, unknown>): void;
abstract clone(_seed?: SeedType, _opts?: Record<string, unknown>): RNG;
_seed(seed: number, _opts?: Record<string, unknown>): number;
}