UNPKG

foxts

Version:

Opinionated collection of common TypeScript utils by @SukkaW

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