Genarating random coordinates using normrnd

Apr 2010
3
0
How do I use nrmrnd to generate random coordinates x and y such that x is greater than or equals to -pi/2 and less than or equal to pi/2. And y is greater than or equal to 0 and less than or equals to 2?
 

Moo

MHF Hall of Honor
Mar 2008
5,618
2,802
P(I'm here)=1/3, P(I'm there)=t+1/3
Hello,

What's the point of taking random coordinates in a normal distribution if you're limited to these intervals ?
Can't you take random coordinates from a uniform distribution ?

I see this is matlab language... If you want them from a normal distribution then just use a while loop, or an if...