UNPKG

fabric

Version:

Object model for HTML5 canvas, and SVG-to-canvas parser. Backed by jsdom and node-canvas.

11 lines (9 loc) 338 B
/** * Returns random number between 2 specified ones. * @param {Number} min lower limit * @param {Number} max upper limit * @return {Number} random value (between min and max) */ const getRandomInt = (min, max) => Math.floor(Math.random() * (max - min + 1)) + min; export { getRandomInt }; //# sourceMappingURL=getRandomInt.mjs.map