public static int[] range(int start,int end){
  int[] out=new int[end - start];
  for (int i=0, j=start; j < end; i++, j++) {
    out[i]=j;
  }
  return out;
}

public static int [ ] range ( int start , int end ) { int [ ] out = new int [ end - start ] ; for ( int i = 0 , j = start ; j < end ; i ++ , j ++ ) { out [ i ] = j ; } return out ; }
initialize an integer value range .
