Creating random rectangles in a grid

you need to learn to code (Python, VB, C#). You have the rough algorithm described by you. If you can work with some size defined by integer and not double I’ll use a big 2D array containing bools. You’ll find example in some of my script.