|
|
|
|
|
by jpeanuts
2875 days ago
|
|
Your missing the requirement that the random sample be uniform in the sphere. That is, if the sphere is cut into any number of pieces of equal volume, the sample is equally likely to appear in any piece. Your approach samples uniformly from the radius, so you're going to end up with far too many samples close to the center. |
|
https://codepen.io/anon/pen/xJJOEq