Random horizontal lines for openings

Hello I am trying to do a screen with a pattern in sketch below. Can anyone help me with what logic I can use to control that pattern and get different options? I tried random quad panels from lunchbox but didnt achieve this, then I tried selecting random points and doing lines from them , but then they overlap each other and controlled pattern isnt achieved.

It just occurred to me maybe it can be achieved by dashed lines. Trying that option !

Just trying to think how to limit number of lines in each row to either one or two segments only
random lines.gh (10.1 KB)

Done with this second approach using sub curve and random domains. I divided curves into two list. First list have one segment and second list two segments. I am trying two things in this script now, first one to limit domain values to maintain minimum length of lines in first list. Secondly if I do two random domains for each of the second set of curves, how can we avoid overlapping domains to avoid two curves on top of each other ?

random lines.gh (9.1 KB)



randomLines.gh (22.3 KB)

Similar approach to yours, but with a few differences.
1, Out of a list of points, I pick four random points.
2. Arrange points in ascending order.
3. Join first two points together to create first line, and join third and fourth points to create second line.
4. Out of the selected four point, sometimes the same point is repeated (eg point 3, point 10, point 10, point 15). When this happens it creates two lines with no gap, which are joined into one line.

It would be interesting to put in some parameters to control the results based on the intended use, stuff like limiting the gap size, and distribution of single line Vs double ones