Files
NapCatQQ/.pnpm-store/v3/files/1e/1c34e9a9e80e1107cf2811f7ecef331b46c58ba07b1cc96b430ee5b664d67f37f2a076679c69692a64eb8cc2e4a1a16d3af5c26db883ed409d6f5ff6b5ac44
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

19 lines
539 B
Plaintext

/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeFloor = Math.floor,
nativeRandom = Math.random;
/**
* The base implementation of `_.random` without support for returning
* floating-point numbers.
*
* @private
* @param {number} lower The lower bound.
* @param {number} upper The upper bound.
* @returns {number} Returns the random number.
*/
function baseRandom(lower, upper) {
return lower + nativeFloor(nativeRandom() * (upper - lower + 1));
}
export default baseRandom;