Grasshopper Pattern Help

Does anyone know how to make a pattern similar to the image attached in grasshopper? Random lines with some closed. The ultimate goal is to have a smooth wave pattern with dark raised and light lowered. I know i could blur this in photoshop and then do it with a rhino heightfield, but I’d like to learn how to make this sort of pattern in grasshopper. Cheers!

You will find the same pattern here

The best solution is right at the end by @ Arkadius Belov using the Heteroptera plugin.
See if you can install the plugin and follow the images in the comment marked as the solution. It will be a good learning exercise if you want to learn grasshopper!