How to choose random point at unit distance on sphere python?
Answers
Answered by
0
Answer:
We'll use what is usually the easiest algorithm: a rejection method. First, we pick a random point in the unit cube where x, y, and z all range from -1 to +1. We reject this point and try again if the point is outside the sphere. A do/while construct is perfect for that.
Answered by
0
Answer:
We'll use what is usually the easiest algorithm: a rejection method. First, we pick a random point in the unit cube where x, y, and z all range from -1 to +1. We reject this point and try again if the point is outside the sphere. A do/while construct is perfect for that.
Similar questions