Python Forum
How to generate multiple rectangles with randrange without overlapping? - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Homework (https://python-forum.io/forum-9.html)
+--- Thread: How to generate multiple rectangles with randrange without overlapping? (/thread-14637.html)



How to generate multiple rectangles with randrange without overlapping? - rafaberec - Dec-10-2018

I need to code a program that generates 24 rectangles randomly, but I need for this rectangles not to overlap and leave space between them.


RE: How to generate multiple rectangles with randrange without overlapping? - buran - Dec-10-2018

Welcome to the forum. Although we are glad to help and guide you, we are not going to do your homework. Please show us your code in python tags, post full traceback in error tags if you get any and ask specific question(s).