This can be a geometry problem, since the distributions are uniform.
You need
For x > y, we have or
This cuts off a corner.
You do x < y to cut off the other corner. You're almost done.
This can be a geometry problem, since the distributions are uniform.
You need
For x > y, we have or
This cuts off a corner.
You do x < y to cut off the other corner. You're almost done.