Actually I have not click into the notes you posted on the 1st post before my 1st reply above - I only think you are trying to estimate the integral as an exercise. Here in the question you proposed there is no obvious variable for you to condition on - I think this technique generally referred to the stratified sampling.
I can provide some calculations for you to let you have a feeling.
First of all by simple integration (by part twice) you can show that the theoretical values
If

follows the truncated exponential, then
If

follows the uniform(0, 1), then
So the estimator suggested by me is not as good as the one you simulate by the uniform.
One thing here is that you can choose a good density for you to reduce the variance - which is also generally known as the importance sampling.