Random shuffle

Hello, may I ask for some help? I am faced with a problem; I need to shuffle it (buildings) randomly with the repetition. I want the building distribution to be random, and it is not a problem if the patterns are repeated, because my final goal is optimization. This helps me identify suitable design patterns. In addition, this time I also allocate one plot to green space. Overall, there are ten plots: nine for buildings and one for green space. I attached my file and also a picture; maybe it’s helpful to better understand what I’m looking for.

Regards,

Samira

9 Random Models + 1 Green Space 28012026.gh (47.6 KB)

You could add Random component to generate list of IDs to pick buildings. And your jitter would modify their position. (But I believe random component for wallacei is not the best approach)

Here I shifted list basepoints and buildins so that green plot would be zero index. Then generate other ids and insert 0 to make sure green plot is always only one.

Thank you. I did what you did, but It is mixed. some buildings overlayed. Sorry for the basic knowledge. Im not expert on it.

Probably should be 9 as you have 9 plots.

Because you have a 3 x 3 grid (9 locations) and you’re moving 10 blocks:

Select 9 random blocks, then move them.

Rhino_y46f6bSql0

klm.gh (22.0 KB)

instead of having 10x identical Rectangle components, you can bring those before the Entwine and just use one :slight_smile:

this way you also have a pre-built data-tree with all the 10x Rectangles that you can use to get Area Centroid + XY_Plane and use for Orient operations (this also allows for including Rotation in a very easy way)

starting situation:

if you want the combinations organized in a grid:

9 Random Models +1 Green Space28012026_inno.gh (66.1 KB)