"venki Kavuri" <email@example.com> wrote in message <firstname.lastname@example.org>... > How to generate random number vector that satisfies the following equation > > 0.005<= Current Vector + rand() <= 0.03. > > Note: random numbers can be positive or negative as along as they satisfy the equation. > > Thanks in advance > > Venki
Generate a vector r of random numbers uniformly distributed in [0,1] using rand. Then a vector v with the property of rand() from above above can be obtained by v=0.005+r*0.025-Current Vector.