function number(min, max, defMin, defMax, hasPrecision) {
      if (hasPrecision === void 0) { hasPrecision = false; }
      defMin = typeof defMin === 'undefined' ? env.MIN_NUMBER : defMin;
      defMax = typeof defMax === 'undefined' ? env.MAX_NUMBER : defMax;
      min = typeof min === 'undefined' ? defMin : min;
      max = typeof max === 'undefined' ? defMax : max;
      if (max < min) {
          max += min;
      }
      var result = getRandom(min, max);
      if (!hasPrecision) {
          return Math.round(result);
      }
      return result;
  }
Generates random number according to parameters passed

@param min
@param max
@param defMin
@param defMax
@param hasPrecision
@returns {number}