Use sampling to perform a 2-D integration and thereby determine .
Some source code available in: C, FORTRAN
You can view a plot showing a possible result.
Or you can define your own geometric
figure and use Monte-Carlo integration to find its area.