Random Height Extrude


I would like to generate random height extrude cylinder in grasshopper.

start from a circle

From the list for the random height

ex) height=[1,2,3,4,5]

pick one item for the height from the list

extrude with that selected item for the height from the list

then extrude again upon the previous one with new random height item from the list (should not be the same with the previous one)

n times extrusion (n=length of the list)

It will be like a tower(cylinder) with random floor height.

I hope someone can help this with elegant and clean way.

Thank you!

Not sure if u r tryin’ this
Random.gh (17.3 KB)

1 Like

I found the most tricky part you solved in beautiful solution. I checked with the “dice” function from Heteroptera for the random height input from the list and it works well. :slight_smile:

Will be happy to know if you have any good idea without plugin for that.

Thank you! Aquintana!

1 Like

Is there any solution to have a new generation when I trying to make a rectangular array with new random number or item from list? I would like to have all different cylinder for each generation. :slight_smile:

random2.gh (11.0 KB)

random2.gh (16.8 KB)


Thank you! Aquintana.

I hope the extrude height of each step(floor) could be different like the first one.

First generation - (new generation with new random height of each extrusion) - Rectangular Array

Maybe something like that.

I am not sure Grasshopper support in this way. Will be happy to know if you have a good idea. :slight_smile: