I can use make_grid fine to make such a grid:

But how can I make a grid like this:

example858×648 429 Bytes

Ideally I would like to have the images in each grid padded randomly with different values.
Thank you.