02-19-2016 09:34 AM
Hello,
Does exist function that generates random unit vector 3D (x0, y0, z0)
Thanks in advance
Pavel
Solved! Go to Solution.
02-19-2016 10:03 AM
02-19-2016 10:05 AM
It is called a FOR loop.
02-19-2016 10:12 AM
Hi Pavel_47,
How about that?
Regards
02-19-2016 10:21 AM
Hi Sabri,
A unit vector has the property that the sum of the squares is equal to 1. Yours will have the sum anywhere from 0 to 300.
02-19-2016 10:34 AM
Didn' new. Thx for the info.
02-19-2016 10:35 AM
Knew 🙂
02-19-2016 10:53 AM
02-19-2016 12:11 PM
Well ... I've searched a little bit more and found approach base on polar coordinates: only 2 random variables are generated and they are completely independent.
Here it is.
Regards
Pavel
02-22-2016 09:46 AM
Hi Pavel,
I think parameterizing in spherical coordinates is a good way to go. You do still have 3 variables to describe a 3D point in space of course