A problem in getting the right random variate of Inverse Gamma Dist.

Problem Solved