def sample_random_point(polygon):
    """
    Sample a random point from inside the given Shapely polygon.
    """
    minx, miny, maxx, maxy = polygon.bounds
    while True:
        p = Point(random.uniform(minx, maxx), random.uniform(miny, maxy))
        if polygon.contains(p):
            return p

    Sample a random point from inside the given Shapely polygon.
    
infinigen/core/constraints/evaluator/indoor_util.py