Simulation of a uniform variable
Suppose a uniform variable with pdf
This leads by integration to
which is a linear function. Thus, it is