Generate a vector of random values inferior to a threshold.
[x]=XYRand(n,l)
vector size.
maximal value.
vector of random values.
XYRand generates a vector of n random values between 0 and l. It is used to generate the coordinates of network nodes.
l=1000;//maximal value n=10;//vector size [x]=XYRand(n,l);//application of XYRand x