UNPKG

rndlib

Version:

Easy to use randomizer functions with TypeScript support

13 lines (12 loc) 357 B
/** * Return a random integer number as a string with leading zeroes equal to the length of max. * * If the random values is requested between 1 and 999, following results would be valid: * * 13 => "013" * 123 => "123" * * @param min number * @param max number */ export declare function padrnd(min: number, max?: number): string;