Press 'r' for randomness.
Press 'h' to toggle interface.
Regenerate

View on a bigger screen for more control.

Quad

Draw a quad randomly assigning its corners on the grid.

Logic: A quad is drawn using the canvas' edges. Utilizing the grid, random point on each edge is selected to which a corner of the quad is assigned.

Note: The script has implemented a method of preventing rolling point combinations that would result in drawing a triangle or a line which would appear as a blank canvas. For example, if for both top and left edge 0 were rolled and 2 for bottom and 4 for right edges, that would result in drawing a triangle.