UNPKG

foxts

Version:

Opinionated collection of common TypeScript utils by @SukkaW

1 lines 120 B
function n(n){return(t,o)=>Math.floor(n()*(o-t+1))+t}const t=n(Math.random);export{n as createRandomInt,t as randomInt};