Generating Points with Uniform Density in a Triangle, Parallelogram, or Disk

This Demonstration generates points with a uniform density inside a triangle, parallelogram, or disk. Drag the red points to vary the figures. The probability of a point's falling in a region is proportional to the area of the region.