build/modelscript.umd.js
function random$1(data, K) {
                const rand = new Picker$1(data);
                var ans = new Array(K);

                for (var i = 0; i < K; ++i) {
                    ans[i] = rand.pick();
                }
                return ans;
            }
function random$1(data, K) {
                const rand = new Picker$1(data);
                var ans = new Array(K);

                for (var i = 0; i < K; ++i) {
                    ans[i] = rand.pick();
                }
                return ans;
            }
function random$1 ( data , K ) { const rand = new Picker$1 ( data ) ; var ans = new Array ( K ) ; for ( var i = 0 ; i < K ; ++ i ) { ans [ i ] = rand . pick ( ) ; } return ans ; }
Choose K different random points from the original data
@ignore
@param {Array<Array<Number>>} data - Points in the format to cluster [x,y,z,...]
@param {Number} K - Number of clusters
@return {Array<Array<Number>>} - Initial random points
Choose K different random points from the original data