Hi guys, I am having some trouble with this list organization and have no clue how to solve it.
Basically, I have created a code tha
tower.gh (20.0 KB)
t subdivides a surface and then multiplied it in the z coordinate - every sing point is organized in different branches for each Z value. Now I would like to pick one random value from each branch.
Would love to get your opinions on how to solve this
Code is a bit messy but basically it would be something like this
Best Regards
Camilla
What you do is have a Random component generate three pseudo-random integer numbers from the domains 0 to the list length (e.g. 3) of your individual points lists.
For it to do that, you probably need to connect another Random component that generates another three pseudo-random integers for each of the points lists to the seed input S of the above mentioned component and the input also needs to be grafted. Set the its domain to something large (0 to 1000).
Now you can use the unique random indices from above with an Item to extract a random point from each of the three lists.
I will try that and keep you posted. Thanks!