In this tutorial, I will show you how to generate 2-dimensional random distribution with the given probability function (or with the given density). I will use the Rejection Sampling technique, which will perfectly work in any dimension space. And I will show you how to make Python code for generating 2D Random distribution by Rejection Sampling.
Full code: http://mycoding.uk/a/2d_random_distri...
Another technique for 1D space: • Random distribution for the given pro...
Meshgrid: • Numpy Mgrid and Meshgrid. Conversion ...