foxts
Version:
Opinionated collection of common TypeScript utils by @SukkaW
1 lines • 135 B
JavaScript
;function t(t){return(n,o)=>Math.floor(t()*(o-n+1))+n}const n=t(Math.random);exports.createRandomInt=t,exports.randomInt=n;
Opinionated collection of common TypeScript utils by @SukkaW