mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 18:07:49 +00:00
Remove references to _.
This commit is contained in:
@@ -19,7 +19,6 @@ const nativeRandom = Math.random;
|
||||
* floating-point values which can produce unexpected results.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 0.7.0
|
||||
* @category Number
|
||||
* @param {number} [lower=0] The lower bound.
|
||||
@@ -28,16 +27,16 @@ const nativeRandom = Math.random;
|
||||
* @returns {number} Returns the random number.
|
||||
* @example
|
||||
*
|
||||
* _.random(0, 5);
|
||||
* random(0, 5);
|
||||
* // => an integer between 0 and 5
|
||||
*
|
||||
* _.random(5);
|
||||
* random(5);
|
||||
* // => also an integer between 0 and 5
|
||||
*
|
||||
* _.random(5, true);
|
||||
* random(5, true);
|
||||
* // => a floating-point number between 0 and 5
|
||||
*
|
||||
* _.random(1.2, 5.2);
|
||||
* random(1.2, 5.2);
|
||||
* // => a floating-point number between 1.2 and 5.2
|
||||
*/
|
||||
function random(lower, upper, floating) {
|
||||
|
||||
Reference in New Issue
Block a user