Triangular distribution

$$ f(x) = \begin{cases} \frac{2(x-a)}{(b-a)(c-a)}, & \text{if $a \leq x < c$,} \\ \frac{2(b-x)}{(b-a)(b-c)}, & \text{if $c \leq x < b$,} \\ 0, & \text{otherwise.} \end{cases} \\[25pt] \text{where $a$ and $b$ are the lower and upper limit and c is the mode.} $$