UNPKG

foxts

Version:

Opinionated collection of common TypeScript utils by @SukkaW

8 lines (6 loc) 289 B
/** * @param random - a random generate function that returns a number between 0 and 1 */ declare function createRandomInt(random: () => number): (min: number, max: number) => number; declare const randomInt: (min: number, max: number) => number; export { createRandomInt, randomInt };