# Creating random rectangles based on a grid

**URL:** <https://discourse.mcneel.com/t/creating-random-rectangles-based-on-a-grid/174024>\
**Category:** Grasshopper\
**Tags:** random, windows, grid, rectangle\
**Created:** [January 23, 2024, 9:02pm UTC](https://discourse.mcneel.com/t/creating-random-rectangles-based-on-a-grid/174024 "2024-01-23T21:02:37Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![laurent\_delrieu](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/laurent_delrieu/32/601605_2.png) [@laurent\_delrieu](https://discourse.mcneel.com/u/laurent_delrieu)\
**Post date:** [January 23, 2024, 9:22pm UTC](https://discourse.mcneel.com/t/creating-random-rectangles-based-on-a-grid/174024/4 "2024-01-23T21:22:40Z")

</div>

Yes I made some of the tools. I will gave you some links.  
But you could also use a tool like google with a search like that  
Site:discourse.mcneel.com packing rectangle  
And if you choose image you will see the results you want

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/a/1/1/a1164853331c128077ab58b25ee5159e2c4ef387.jpeg)

> [@Subdivide given area into randomly sized blocks with no gaps](https://discourse.mcneel.com/t/subdivide-given-area-into-randomly-sized-blocks-with-no-gaps/58003):
>
> I have been struggling with this logic for a little while now, I am trying to create a definition to produce surfaces similar to the image attached. I have a feeling I might be approaching it from the wrong angle so would like to get another perspective if possible? [RandomMeshDivide.gh](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/8/7/87f8ef2cca97b3af281095f4a24edc2f4f589a31.gh) (16.5 KB)

---

_[View the full topic](https://discourse.mcneel.com/t/creating-random-rectangles-based-on-a-grid/174024)._
