This documentation contains a step-by-step tutorial on how to implement k-means clustering in Thrill.
See Step 1: Generate Random Points