Hello! I was wondering if there is a better way than what I'm doing here, as the line is quite long. Thanks!
def randomRectanglePositionsInBoard(rectWidth : int, rectHeight : int, rectAmmount : int, boardWidth : int, boardHeight : int) -> list[list[int]]:
"""
Returns a list of coordinates [x,y], that are the top-left corners of found valid rectangles
"""
while True:
coordinates = []
for _ in range(rectAmmount):
...