I\'m currently working on a pygame game and I need to place objects randomly on the screen, except they cannot be within a designated rectangle. Is there an easy way to do this
This will generate samples from the uniform probability distribution on the valid region, based on the chain rule of conditional probability.