random placement of rectangles with no overlaps

后端 未结 3 1836
臣服心动
臣服心动 2021-01-03 11:53

I am looking for a sound algorithm that would randomly place a given number of rectangles of the same size into a bigger rectangle (canvas).

I see two ways to do it:

3条回答
提交回复
热议问题