monte carlo code for temp dist in finite wedge