Algorithms, Monte Carlo, Mathematics, Java, Programming.
the first quadrant of the graph. That is to say, consider only points (x,y) made from values that are between 0 and 1. The idea is still the same and we need not adjust our thinking. We are just scaling everything by the same ratio (a quarter) and the probability is the same. pi.java