random selection of centroids done