public List<KrigingPoint> RandomizePoints(List<KrigingPoint> pnts,int n){
  Random rnd=new Random();
  List<KrigingPoint> res=new ArrayList();
  double drnd=0.0;
  for (int i=0; i < n; i++) {
    res.add(pnts.get(rnd.nextInt(pnts.size())));
  }
  return res;
}

public List < KrigingPoint > RandomizePoints ( List < KrigingPoint > pnts , int n ) { Random rnd = new Random ( ) ; List < KrigingPoint > res = new ArrayList ( ) ; double drnd = 0.0 ; for ( int i = 0 ; i < n ; i ++ ) { res . add ( pnts . get ( rnd . nextInt ( pnts . size ( ) ) ) ) ; } return res ; }
randomly selects the n points from the entered point list this is not a necessary method to use but with large point list ( more than 1000 points ) it is better to apply it
