4 ms·
Yes, that's right. I haven't verified it but suspect that you might be able to improve on this by generating the coordinates in order, constantly decreasing th
by pontus 6y ago
Yes, that's right.
I haven't verified it but suspect that you might be able to improve on this by generating the coordinates in order, constantly decreasing the range to ensure that the point falls within the sphere. Then, to ensure spherical symmetry, you randomly shuffle the points at the end.