code: function midRange(start, end, count) {
      count = Math.max(+count || 0, 2); // Force a number greater than 1 (must have at least start/end values)
      count -= 1; // Makes the maths easier
      var diff = end - start;
      var incr = diff / count;
      var ret = [];
      for (var i = 0; i <= count; i++) {
          ret.push(start + incr * i);
      }
      return ret;
  }
docs: Generate a range of evenly-spaced numbers between start and end values (inclusive)