Python Forum
How to generate multiple rectangles with randrange without overlapping?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to generate multiple rectangles with randrange without overlapping?
#1
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.
Reply
#2
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).
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Array and rectangles pythonuser1 3 2,351 Apr-24-2020, 04:52 PM
Last Post: deanhystad
  printing list of random generated rectangles Zatoichi 8 7,333 Feb-18-2018, 06:34 PM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020