The problem is simply with your understanding of the randn funciton. It generates normally-distributed random values with a variance of 1 and a mean of 0. If you want to change those, multiiply or add the desired scalar quantities. So for example:
r = a*randn(1,100)+b;
generates uniformly distributed random numbers with a mean of ‘b’ and a standard deviation of ‘a’.
I’m certain you can take it from there!