How to generate random boundary programmatically?

100 Views Asked by At

What should I read to understand how to draw programmatically random oil 'boundary' like on the picture below?

image

Yes, it should go from the top to the bottom and so I don't need these 'long' drops and I would like to start with pure 2d, black and white only (now shadows etc.).