function randomBetween() {
    var min = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
    var max = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 10;

    if (!isNumber(min) || isNumericalNaN(min)) {
        throw new TypeError('Min should be numeric');
    }

    if (!isNumber(max) || isNumericalNaN(max)) {
        throw new TypeError('Max should be numeric');
    }

    return Math.random() * max + min;
}
function randomBetween() {
    var min = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
    var max = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 10;

    if (!isNumber(min) || isNumericalNaN(min)) {
        throw new TypeError('Min should be numeric');
    }

    if (!isNumber(max) || isNumericalNaN(max)) {
        throw new TypeError('Max should be numeric');
    }

    return Math.random() * max + min;
}
function randomBetween ( ) { var min = arguments . length > 0 && arguments [ 0 ] !== undefined ? arguments [ 0 ] : 0 ; var max = arguments . length > 1 && arguments [ 1 ] !== undefined ? arguments [ 1 ] : 10 ; if ( ! isNumber ( min ) || isNumericalNaN ( min ) ) { throw new TypeError ( 'Min should be numeric' ) ; } if ( ! isNumber ( max ) || isNumericalNaN ( max ) ) { throw new TypeError ( 'Max should be numeric' ) ; } return Math . random ( ) * max + min ; }
Generate random between min and max
Generate random between min and max