https://blog.demofox.org/2018/06/12/monte-carlo-integration-explanation-in-1d/
Let’s say that you have a function $latex y=\sin(x)^2$ and you want to know what the area is under the curve between 0 and pi. We could solve this...
monte carlo integrationthe blogexplanationlaquo