title: Random-generate tuples according to probability function
body: <p>I have a probability density distribution function for the angle combination (theta, phi). Theta and phi can take 360 and 180 values respectively, resulting in a total of 64800 elements, each one with its own specific probability. Is there a way in python to generate random numbers for a 2D n-tuple, as they are generated in <code>random.choices(list, probabilities)</code> for a list?</p>