How to generate uniform random points inside d-dimension ball / sphere?
In this thread, @Thomas Lux has a wonderful solution of generating uniformly random points inside an nD ball with radius r=1. But now I want to generate points where their Cartesian coordinates are integers. I do not know any way except generating random points in a cube and throwing out the points with norm greater than 1.
I don't know if simply using randint or pushing np.floor() to the vector will do.