UNPKG

@techmely/utils

Version:

Collection of helpful JavaScript / TypeScript utils

17 lines (14 loc) 332 B
/*! * @techmely/utils * Copyright(c) 2021-2024 Techmely <techmely.creation@gmail.com> * MIT Licensed */ "use strict"; (() => { // src/getRandomInt.ts function getRandomInt(min, max) { const _min = Math.ceil(min); const _max = Math.floor(max); return Math.floor(Math.random() * (_max - _min) + _min); } })();