Random Numbers: Normally Distributed OR Uniformly Distributed

uniform-normalGreen line: Uniform distribution over the range [-5,5]

(MATLAB rand generates uniformly distributed pseudorandom numbers between 0 and 1)

Red Line: Normal distribution with mean of 0 and standard deviation of 1

(MATLAB randn generates normally distributed pseudorandom numbers between approximately -7 and +7)

 

Advertisements