question: public static IMultiPoint [ ] randomPoints ( int n , int d , int scale ) { IMultiPoint points [ ] = new IMultiPoint [ n ] ; for ( int i = 0 ; i < n ; i ++ ) { StringBuilder sb = new StringBuilder ( ) ; for ( int j = 0 ; j < d ; j ++ ) { sb . append ( rGen . nextDouble ( ) * scale ) ; if ( j < d - 1 ) { sb . append ( "," ) ; } } points [ i ] = new Hyperpoint ( sb . toString ( ) ) ; } return points ; }
target:  Generate array of n d-dimensional points whose coordinates are values in the range 0 .. scale