How can I cut the image into randomly sized pieces

Lamb Luo's icon

Really need someone for help!!!
I am trying to use eclipse to remix two videos like the first image, but the arrangement is neat,every part of them are equal size. How can I make those pieces into random size like the second image?

Martin Beck's icon

Rough sketch with jit.gl.pix techniques. How to implement the tint remains a little bit challenging. With jit.eclipse I think there is no option to change the tiling.

Max Patch
Copy patch and select New From Clipboard in Max.

Lamb Luo's icon

Thank you Mr.Beck! I think so,maybe jit.op is a way to implement the tint.