Distance between two random points in a unit square

How many trials?

Average distance:

Exact answer: (2 + √2 + 5 ln(√2 + 1))/15 ≈ 0.52140


Distance between two random points in a unit circle disk

How many trials?

Average distance:

Exact answer: 128 / 45π ≈ 0.905415


X         Y         Distance