Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2011/ia/paper-2/12f/a/solution

Normalization of the probability density function gives
The first two moments are
Consequently
The cumulative distribution function is on . For with the uniform distribution on , inverse transform sampling therefore uses
The inverse lies in the required interval and satisfies .

New to topics? Read the docs here!