Generating samples from $u(7,10)$

75 Views Asked by At

I have the following assignment:

It requires to generate samples from $u(7,10)$,the uniform distribution on the interval $2 \leq x \leq 11$. Compare the normalized histogram with the density function(pdf).

I have no idea. I need help please, thanks.