code: public static int[] arange(final int len) {
      checkArgument(len > 0);
      final int[] ret = new int[len];
      for (int i = 0; i < len; ++i) {
        ret[i] = i;
      }
      return ret;
    }
docs: Produces an array of integers from 0 (inclusive) to len (exclusive)