UNPKG

remeda

Version:

A utility library for JavaScript and Typescript.

2 lines 267 B
function e(e,t){let n=Math.ceil(e),r=Math.floor(t);if(r<n)throw RangeError(`randomInteger: The range [${e.toString()},${t.toString()}] contains no integer`);return Math.floor(Math.random()*(r-n+1)+n)}exports.randomInteger=e; //# sourceMappingURL=randomInteger.cjs.map