I would like to know if there any algorithm to pick a random grid point inside a d-dimensional ball with a given radius R.  And if there any algorithm to pick a random arbitrary point inside a d-dimensional ball with a given radius R. Thanks.
Random point in a d-dimensional ball
randomized algorithms