public static IMultiPoint[] randomSearchPoints(int n,int scale){
  IMultiPoint points[]=new IMultiPoint[n];
  for (int i=0; i < n; i++) {
    double d1=rGen.nextDouble() * scale;
    double d2=rGen.nextDouble() * scale;
    points[i]=new TwoDPoint(d1,d2);
  }
  return points;
}

public static IMultiPoint [ ] randomSearchPoints ( int n , int scale ) { IMultiPoint points [ ] = new IMultiPoint [ n ] ; for ( int i = 0 ; i < n ; i ++ ) { double d1 = rGen . nextDouble ( ) * scale ; double d2 = rGen . nextDouble ( ) * scale ; points [ i ] = new TwoDPoint ( d1 , d2 ) ; } return points ; }
generate array of n d - dimensional points whose coordinates are values in the range 0 . . scale
