code: def _init_random_centroids(self):
          
          self.centroids = self._X[np.random.choice(list(range(self._X.shape[0])), size=self.n_clusters), :]
docs: Initialize the centroids as k random samples of X (k = n_clusters)