Implemented n-ball uniform distribution