- #1
bgy
- 8
- 0
hi,
I have to generate a random vector |Q>, which has the following form:
|Q>=a*(1,0)+b*(0,1), where |a*a|+|b*b|=1 and (...,...) is a 2 dimensional column vector.
This is a linear superposition of two vectors simply and the values of the vectors change between [0,1] randomly.
I think, I schould use Monte Carlo simulation method...
Please, if you have a source code (in C++), send me... this is very important!
I have to generate a random vector |Q>, which has the following form:
|Q>=a*(1,0)+b*(0,1), where |a*a|+|b*b|=1 and (...,...) is a 2 dimensional column vector.
This is a linear superposition of two vectors simply and the values of the vectors change between [0,1] randomly.
I think, I schould use Monte Carlo simulation method...
Please, if you have a source code (in C++), send me... this is very important!