I what to randomly divide a sqaure region (20 by 20) into 3 portions (not necessary square in shape).
Then randomly deploy points in the 3 regions.
I tried the code below but not getting what i want. I need random divisions (different shapes e.g one portion can be a trapezoid and so on)
plot (n, '+r')
plot (b, 'ok')
plot (c, 'vg')
The above code gives divisions along horizontal lines
I need something like the above figure 1.