# AS3 Random Grid with different sized tiles

**URL:** <https://forum.kirupa.com/t/as3-random-grid-with-different-sized-tiles/293116>\
**Category:** flash\
**Created:** [July 23, 2009, 11:11am UTC](https://forum.kirupa.com/t/as3-random-grid-with-different-sized-tiles/293116 "2009-07-23T11:11:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jugraj](https://avatars.discourse-cdn.com/v4/letter/j/ec9cab/32.png) [@jugraj](https://forum.kirupa.com/u/jugraj)\
**Post date:** [July 23, 2009, 11:11am UTC](https://forum.kirupa.com/t/as3-random-grid-with-different-sized-tiles/293116/1 "2009-07-23T11:11:09Z")

</div>

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: [http://www.lecoqsportif.com/fr/all#/fr/all/](http://www.lecoqsportif.com/fr/all#/fr/all/) . 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:
