Cutting a 3D form into small cubes then doing a random selection

Hello
you can use also K-Means Clustering, there is now a tool in Lunch Box ML plugin and in Ngon