A random number generator generated random values from the Standard Uniform distribution Uniform(0,1). Call this random variable, $U$. Starting with a random value $u$ from $U$, show all the steps necessary to generate a continuous random variable with the density function $f(x) = 0.5(1+x)$, where $-1 \le x \le 1$.
I am doing this for a practice exam so an exact answer is not as important to me as the proper solution. I honestly have no clue how to go about this problem and have tried using similar pseudo code problems for Uniform(0,1) but still haven't been able to figure this one out in particular.