September 16th, 2002, 2:31 pm
tomasso,this seems to be quite easy. Denote by p(a,b) the probability that x < a and y < b (you have the code for p(a,b) already)Now the probability that a1 < x < a2 and b1 < y < b2 is calculated as p(a2,b2) - p(a1,b2) - p(a2,b1) + p(a1,b1) [for fixed constant ranges].Is this the thing you've asked about, or smth more complicated ?