export type RandomSource = () => number; /** * 0 ~ 2^32-1の範囲の整数乱数を返す関数を返す * @param seed */ export declare const createRandomSource: (seed: number) => RandomSource; export declare const createRandomHelper: (next: RandomSource) => { next: RandomSource; nextString: (length: number) => string; nextInt: (min: number, max: number) => number; nextSnowflake: () => string; nextDate: (min: Date, max: Date) => Date; nextColor: () => number; }; /** * 指定した長さのランダムな文字列を返す * 文字には英大文字、英小文字、数字が使われる * 文字列の数だけ乱数を消費する */ export declare const nextString: (next: RandomSource) => (length: number) => string; /** * min以上max未満の範囲のランダムな整数を返す */ export declare const nextInt: (next: RandomSource) => (min: number, max: number) => number; /** * ダミーのsnowflakeIdを生成する * 19桁の10進整数文字列を返す */ export declare const nextSnowflake: (next: RandomSource) => () => string; export declare const nextDate: (next: RandomSource) => (min: Date, max: Date) => Date; export declare const nextColor: (next: RandomSource) => () => number; //# sourceMappingURL=randomSource.d.ts.map