Category : multidimensional-array

I’m trying to generate a regular n number of points within the volume of a sphere. I found this similar answer (https://scicomp.stackexchange.com/questions/29959/uniform-dots-distribution-in-a-sphere) on generating a uniform regular n number of points on the surface of a sphere, with the following code: import numpy as np n = 5000 r = 1 z = [] y ..

Read more