WOLFRAM NOTEBOOK

WOLFRAM|DEMONSTRATIONS PROJECT

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

number of random points
300
figure
triangle
parallelogram
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.
Wolfram Cloud

You are using a browser not supported by the Wolfram Cloud

Supported browsers include recent versions of Chrome, Edge, Firefox and Safari.


I understand and wish to continue anyway »

You are using a browser not supported by the Wolfram Cloud. Supported browsers include recent versions of Chrome, Edge, Firefox and Safari.