K-means clustering algorithm with random seed initialization