Array and random rotation

Hi all!

I asked a question about random rotation of panels along a curve a couple days ago and @DavidRutten was extremely nice and helpful.
I played around with his script yesterday (and probably committed a few crimes against common sense while doing so…) because I also need some surfaces to consist of multiple repetition of panels…

I followed a tutorial yesterday and it worked on its own, but I can’t understand how to connect it to the random function, as soon as I do it starts arraying in random directions.
I’m imagining it has to do with the random function, but I really don’t know how to mess with that…
What am I doing wrong?

Here are the gh file and the model

panels (30.9 KB)

190122_Op2 curves.3dm (1.9 MB)

panels (42.7 KB)