Randomized Placement of Breps on a Grid


(Egd46) #1

Sorry, slightly new to this …

I have a seemingly easy task, but I can’t figure it out!
I am trying to randomly select 5 points out of a branch and then place a random brep at those selected points. I have 4 types of breps (a cone, a sphere, a rectangle, and a cylinder).

Even though I have a randomized list of breps (11 branches with 5 breps on them) and a list of points (11 branches with 5 random points), for some reason I get a not-so-random result. The result I am getting can be seen in the last image.

Can someone please tell me why I am not getting 5 random breps in each vertical row?


(Egd46) #2

Sorry here is the grasshopper file too

GQ_List issues.gh (19.8 KB)


random_geo_2018Mar8a.gh (19.6 KB)


Check this as well…

GQ_List issues_re.gh (27.6 KB)

(Egd46) #5

Thank you!

This is great