code: def init_random(X, n_clusters, random_state):
      
      logger.info("Initializing randomly")
      idx = sorted(draw_seed(random_state, 0, len(X), size=n_clusters))
      centers = X[idx].compute()
      return centers
docs: K-means initialization using randomly chosen points