question: 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 ; }
target:  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