To generate random points over the unit disk, it is incorrect to use two uniformly distributed variables r element [0, 1] and θ element [0, 2π) and then take x | = | r cos θ y | = | r sin θ. Because the area element is given by d A = 2π r d r, this gives a concentration of points in the center (left figure above).