jstests/aggregation/sources/addFields/weather.js
/**
 * Helper to generate an array of specified length of numbers in the specified range.
 */
Helper to generate an array of specified length of numbers in the specified range.
Helper to generate an array of specified length of numbers in the specified range .
function randomArray(length, minValue, maxValue) {
    let array = [];
    for (let i = 0; i < length; i++) {
        array.push((Random.rand() * (maxValue - minValue)) + minValue);
    }
    return array;
}
function randomArray ( length , minValue , maxValue ) { let array = [ ] ; for ( let i = 0 ; i < length ; i ++ ) { array . push ( ( Random . rand ( ) * ( maxValue - minValue ) ) + minValue ) ; } return array ; }
Helper to generate an array of specified length of numbers in the specified range.
Helper to generate an array of specified length of numbers in the specified range .