2d foreground auto generation

Hey guys.
I’m currently working on a 2D game similar to space chase. The problem is that, I can’t exactly figure out the logic behind the black random foreground and how it is being automatically generated. Can I achieve that by using built in unity functionality? i.e. using sprite shapes, splines, perlin noise, etc.? Considering that the shapes of the surface looks really random.