import random


def rectangles_unif_side(n: int, m: int):
    """Return list of `n` rec. with random side lengths `unif{0, m}`"""
    return [(random.randint(1, m), random.randint(1, m))
            for _ in range(n)]