Extrude to random heights in a range of integers

All mighty grasshopper gods,

The newbie is here again to ask questions…

I’m trying to create a group of extrusions to a set of height of, say, 100mm, 110mm and 120mm only.

Please see attached file, where I have a list of circles in a region to be extruded, and they can be extruded in a random way, but all to a height of either 100mm, 110mm or 120mm.

However I couldn’t figure out how to define that 3 values only to the range of the random command…


As you can see, they instead extruded to random numbers… and some in the same place…

Any help would be appreciated!!! Thanks!

190917_randome extrusion height_WIP.3dm (31.0 KB) 190917_randome extrusion height_WIP.gh (11.1 KB)

Hope this helps.

190917_randome extrusion height_WIP-b.gh (11.8 KB)

You can use Heteroptera Dice

Thanks Ethan! Simple and straight forward! Also learnt something with panel editing which I wasn’t aware of before! Thanks again!

great tool Seghier! Brilliant!

For future reference, since you can plug any list into the List Item component, this is a way of choosing random curves, breps, etc.

1 Like

also another handy component is jitter since you already have a list of values which you want to select pseudo-randomly

1 Like