title: Given a 2D Numpy array representing a 2D distribution, how to sample data from this distribution with the aid of Numpy or Scipy functions?
body: <p>Given a 2D numpy array <code>dist</code> with shape <code>(200,200)</code>, where each entry of the array represents the joint probability of (x1, x2) for all x1 , x2 ∈ {0, 1, . . . , 199}. How do I sample bivariate data <strong>x</strong> = (x1, x2) from this probability distribution with the aid of Numpy or Scipy API?</p>