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

View on a bigger screen for more control.

Triangle

Draw a triangle randomly assigning its corners on the grid.

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

Note: The script has implemented a method of preventing rolling point combinations that would result in drawing a line which would appear as a blank canvas. For example, if for both top and left edge 0 were rolled, it would result in overlapping points and creating a blank canvas.