MCPcopy Index your code
hub / github.com/stemkoski/stemkoski.github.com / baseRandom

Function baseRandom

MathBox/mathbox-bundle.js:36423–36425  ·  view source on GitHub ↗

* The base implementation of `_.random` without argument juggling or support * for returning floating-point numbers. * * @private * @param {number} min The minimum possible value. * @param {number} max The maximum possible value. * @returns {number} Returns a random num

(min, max)

Source from the content-addressed store, hash-verified

36421 * @returns {number} Returns a random number.
36422 */
36423 function baseRandom(min, max) {
36424 return min + floor(nativeRandom() * (max - min + 1));
36425 }
36426
36427 /**
36428 * The base implementation of `_.uniq` without support for callback shorthands

Callers 3

sampleFunction · 0.85
shuffleFunction · 0.85
randomFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected