I assume that you are after random Regions (otherwise the solution is obvious). If so there’s tons of similar algos on Internet. Like this - simple one - for instance:
Also this is interesting (spot the K-Means clustering).
BTW: Any of these require coding (average to expert) skills.
BTW: On the other hand there’s the K2 way (Daniel has posted similar indicative cases … or maybe I remember wrongly?).