What you painted looks like a distorted circle.
Assuming you are after this, here is what I will do:
Enter a code that sets the angle from 0 to 2pi for a fixed number of steps. (Try 8). The angle depends on a small random amount of less than ± pi / steps.
Choose a radius of the base that is slightly less than 1/2 the length of the side of the closing square, so there is a place for your points to fall in or out of the radius of the base without going beyond the bounding square. Try 3/8 of the length of your frame.
For each slightly randomized value of the angle along the circle, calculate the radius value, the radius of the base - a random value from 0 to the base radius / 2.
x y .
. , 8- , .
Catmull-Rom, .
EDIT: github RandomBlobs, , , :
3x3 . .
8 . / ( ).
UIBezierPath, 8 .
Catmull-Rom, .
, , :
, , . . , Catmull-Rom, , . , , . , , "" ( , .)
RandomBlobs. , , . , , .
-, blob ( , ):
- :
-, blob , :

. ( ).