Randomly array objects along a curve, but with fixed distances

Hey, I’m making a frame in Grasshopper and I want to array the vertical frame along a curve, but the distances between are fixed (200, 600, 800, 1000, 1200) but randomly chosen. How is this possible.


Frames.3dm (52.3 KB)
Frames.gh (8.2 KB)

also, you may find it easier to use PFrame with a range of random points in the curves domain instead of ArrCurve to locate the frames.

Two ways:

Frames a.gh (22.0 KB)

Hey, thanks for your solution. I only have a little problem when measuring the distances between the vertical elements, because the don’t correspond to the input distances. Do you know how to solve this?

Is that okay?
Frames b.gh (21.1 KB)