Creating Undulating Surfaces for a Roof/Wall system

Hello! Can anyone please help me create a surface that curves up and down randomly to make space under or above the surve. I want the elevation of it to almost look like this -

I tried doing that using this script but the points were annoying -
curve massing.gh (14.4 KB)

Can anyone please help me with that?? This is the final vision that I am aiming towards -

curve massing.gh (24.4 KB)

is there a way where i can make the heights more controllable?