Computer Science, asked by sham9479, 11 months ago

How to choose random point at unit distance on sphere python?

Answers

Answered by itzBrainlyBoy
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 Anonymous
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