How to generate T given a random number generator of a random variable X uniformly distributed over the interval (0,1)? Present a formal mathematical proof that your algorithm for generating T is correct.