cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

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

mj2
5-Regular Member
5-Regular Member

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

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!

ACCEPTED SOLUTION

Accepted Solutions
Werner_E
25-Diamond I
(To:mj2)

What is wrong?

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

24.04.png

View solution in original post

2 REPLIES 2
Werner_E
25-Diamond I
(To:mj2)

What is wrong?

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

24.04.png

mj2
5-Regular Member
5-Regular Member
(To:Werner_E)

Thank you so much!!!!

Announcements

Top Tags