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

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. 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