def METHOD_NAME(num_boxes, h, w):
    cx, cy, bw, bh = torch.rand(num_boxes, 4).T
    tl_x = ((cx * w) - (w * bw / 2)).clamp(0, w)
    tl_y = ((cy * h) - (h * bh / 2)).clamp(0, h)
    br_x = ((cx * w) + (w * bw / 2)).clamp(0, w)
    br_y = ((cy * h) + (h * bh / 2)).clamp(0, h)
    bboxes = torch.stack([tl_x, tl_y, br_x, br_y], dim=0).T
    return bboxes