UNPKG

@bitloops/bl-transpiler

Version:
8 lines 280 B
export class RandomUtils { static getRandomIntWithNumberOfDigits(digits) { const min = Math.pow(10, digits - 1); const max = Math.pow(10, digits) - 1; return Math.floor(Math.random() * (max - min) + min); } } //# sourceMappingURL=RandomUtils.js.map