algorithmic modeling for Rhino

Creating circles with random radius, within a specified domain

Hi guys,

This must definitely be a simple question for many of you out there :) 

Basically, i need to generate many circles with a random radius, where this radius is specified/determined by a specific domain of 10, 12, 14, 18 and 20mm.

Simply put, i can't seem to use the R / Domain correctly in the Random-component. Following the attached logic(which in this case is wrong) it places all of the circles in the specified domain in every single centerpoint.

My goal is to place one circle per one centerpoint, defined by the specific domain of 10 12, 14, 18 and 20.

Help! :)

Views: 4799

Replies to This Discussion

would that work for you?



well.. not really i'm affraid :)

I'm quite sure that the definition i attached is along the lines of what i need. I'm just not sure of how to define the range or domain of the Random component.

I've attached a rh and ghx file. - wetransfer link.

I'm guessing the trick is to correctly define the Range (R) / Domain in the Random component, so that the circles' radi can vary between the fixed and static domain of 10 or 12 or 14 or 18 or 20. Meaning that the radi can only be 10, 12, 14, 18 or 20 - and not, lets say.. 11, 13, 15, 16, 17 or 19 for that matter.

Thanks in advance, i hope someone can figure it out, because i can't seem to find anything online about how to set up such as specific domain.

UPDATE: I've figured out how to define the specific radi's of 10,12 14 18 and 20 in the Random Component, by simply defining multiple domains of 10 to 10, 12 to 12, 14, to 14, 18 to 18, 20 to 20.

Now, the next challenge i am confronted with is that all 5 circles of the above-mentioned radi are placed in each point. My aim is to randomly distribute ONE of the created circles in each point, instead of 5 in each point.

There's a difference between having random radii that all fall within some domain and having radii that are picked at random from a list of predefined radii. It sounds like you're after the latter.


David Rutten


Thanks a bunch David! It worked out perfectly :)






  • Add Photos
  • View All


  • Add Videos
  • View All

© 2022   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service