hi,(adsbygoogle = window.adsbygoogle || []).push({});

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!

**Physics Forums - The Fusion of Science and Community**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Random vector generating - help!

Loading...

Similar Threads - Random vector generating | Date |
---|---|

Is it all in the angle? | Jan 3, 2018 |

C/++/# How to check if a list of numbers is random? | Sep 13, 2017 |

JApplet: Random Circles | Feb 17, 2017 |

Random generated doubles: can I get a number more than once? | May 3, 2016 |

Random walk | Jan 30, 2016 |

**Physics Forums - The Fusion of Science and Community**