Add support for adding PHP extensions

This commit is contained in:
Shivam Mathur
2019-09-07 18:18:47 +05:30
parent 1c6748567c
commit c5513d9a78
6842 changed files with 266 additions and 1017047 deletions
-18
View File
@@ -1,18 +0,0 @@
/* 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));
}
module.exports = baseRandom;