Can’t generate random box with different heights

hello, i stuck in generating a random boxes with different heights, the boxes that i created was aligned to the surface and i wanted them to have different depths , any idea how i can do this?


roof2.gh (23.6 KB)

this is one possible solution, as long as the the original -oriented- box has height = 1, the values on the domain sliders will define min and max random height of your boxes


roof2_re.gh (22.3 KB)


[edit]
even better is generating the boxes already with the right -random- height, instead of scaling them afterwards:


roof2_re_re.gh (21.3 KB)

2 Likes