draw number from uniform distribution
Posted: Thu Mar 31, 2011 8:35 pm
Hi, I am new in the program...
I want to know how to draw number from a uniform distribution of [0,1] and make r = 1 if the number falls within the interval [0, 0.25]; r=2 if (0.25, 0.5], r=3 if (0.5, 0,75] and r=4 if (0.75, 1].
Many thanks!
I want to know how to draw number from a uniform distribution of [0,1] and make r = 1 if the number falls within the interval [0, 0.25]; r=2 if (0.25, 0.5], r=3 if (0.5, 0,75] and r=4 if (0.75, 1].
Many thanks!