Distribute blocks randomly across multiple flat surfaces

Hello.

This is my first time asking a question here. I need help with the following: I have a model containing multiple extrusions, a total of 44, all arranged in a circular shape. There are also three small blocks of different dimensions. What I want to do is randomly distribute each of these blocks to each of the 44 extrusions. That is, I should take a single block from the three available and randomly distribute one to each of the extrusions, preferably in the center.

I tried creating a definition in Grasshopper. I managed to select all the faces where I want the blocks to be, but I don’t know how to distribute them. I appreciate the help.



random blocks.gh (10.5 KB)
Random Blocks.3dm (241.3 KB)

Another question: if I wanted to distribute, for example, a certain number of trees in each extrusion, but ensuring that these trees were in different positions, how should I proceed? What components should I use?

This definition distributes blocks randomly in the center of each floor.
random blocks a.gh (99.4 KB)

2 Likes

Thank you very much! This Grasshopper definition is exactly what I needed.