MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / baseRandom

Function baseRandom

lib/web/jshint.js:4061–4063  ·  view source on GitHub ↗

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

(min, max)

Source from the content-addressed store, hash-verified

4059 * @returns {number} Returns the random number.
4060 */
4061 function baseRandom(min, max) {
4062 return min + floor(nativeRandom() * (max - min + 1));
4063 }
4064
4065 /**
4066 * The base implementation of `_.reduce` and `_.reduceRight` without support

Callers 3

sampleFunction · 0.85
shuffleFunction · 0.85
randomFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected