AS3 Random Grid with different sized tiles

I have a situation where I need to fill a grid with tiles that will be of different sizes, but all multiples of the stage size - something like this: . Can anyone point me to any implemented ActionScript 3 examples?

I want to randomize number of tiles placed into the grid without having any tile overlap. It will then place a tile at a random position on the grid, but not in any grid cells that have already been covered by a tile. And…also I want the grid/tiles to be dynamic enough to scale if the stage is resized.

Thanks for any help. :emb: