How to create random shape?

with the reference video https://www.facebook.com/reel/797254525627995

With any shape i want to create random shape within the shape. Any macro or how it will work. Thanks