Python intuitive solution
i\'m sure this can be optimized in some ways.\n\nfrom random import randint,choices\nclass Solution:\n\n    def __init__(self, R: List[List[int]]):\n        sel
i\'m sure this can be optimized in some ways.\n```\nfrom random import randint,choices\nclass Solution:\n\n    def __init__(self, R: List[List[int]]):\n        self.R=R\n        self.A=[(c-a+1)*(d-b+1) for a,b,c,d in R]\n\n    def pick(self) -> List[int]:\n        a,b,c,d=choices(population=self.R,weights=self.A,k=1)[0]\n        return [randint(a,c),randint(b,d)]\n\n\n# Your Solution object will be instantiated and called as such:\n# obj = Solution(rects)\n# param_1 = obj.pick()\n```
[]