@kotori-bot/tools
Version:
Tools For Kotori
21 lines (20 loc) • 671 B
TypeScript
declare class Random {
private seed;
constructor(seed?: () => number);
int(min?: number, max?: number): number;
float(min?: number, max?: number): number;
bool(offset?: number): boolean;
choice<T>(list: Array<T>): T;
shuffle<T>(list: Array<T>): Array<T>;
uuid(): string;
}
export declare namespace random {
const int: (min?: number, max?: number) => number;
const float: (min?: number, max?: number) => number;
const bool: (offset?: number) => boolean;
const choice: <T>(list: T[]) => T;
const shuffle: <T>(list: T[]) => T[];
const uuid: () => string;
const clone: (seed?: () => number) => Random;
}
export {};