How to alter a circular pipe into a rectangular column

hi all,
I have a concern about changing these columns into rectangular form but I don’t really know how to while still maintaining the random height along a curve function.

Any guidance is really appreciated

Bounding box

1 Like