I want to generate random points of uniform density over a unit ball [-1,1] ^ d in R.
Are there any R packages offering this feature?
I'm sure I can do it myself by extending this answer: https://math.stackexchange.com/a/87238/250498 to d.
But I want to know if there is any function or package in R that already does this.
It would be useful if there was a package that could generate standard multidimensional distributions instead of having me try them myself using reject selection or other methods.
source share