Skip to main content
6-Contributor
April 24, 2014
Solved

runif(n,a,b) in mathcad prime2.0. Does it really generate a uniform distribution of random numbers?

  • April 24, 2014
  • 2 replies
  • 1942 views

I am plotting the histogram of the random numbers generated by the runif(n,0,1) function.

Even for big n the distribution I get is not uniform.

What is wrong?

thanks!

Best answer by Werner_E

What is wrong?

Prime's autoscale. Look at the lowest value at the ordinate and change it to zero.

24.04.png

2 replies

Werner_E
Werner_E25-Diamond IAnswer
25-Diamond I
April 24, 2014

What is wrong?

Prime's autoscale. Look at the lowest value at the ordinate and change it to zero.

24.04.png

mj26-ContributorAuthor
6-Contributor
April 24, 2014

Thank you so much!!!!