Since you can't have a XY array of irregular width.

How would you do this best:

Initial width and height is dynamic and calculated at runtime.

Let's say we have this grid of 20 entries width and 10 entries height.

We fill the horizontal entries with 0 up to 19 on each row.

Then a loop for every horizontal row, you pick one cell at random, and then delete it. Making the width of THAT row one cell smaller.

Repeat for every row until you have no cells left.

How would you do this?

Quite confusing.. sorry.

For this one I would like to ask for capx or at least clear answer. I hope it is not too much.