Random point within a space at a distance of r

110 Views Asked by At

I have n dimensional space. Let us say n=20 for your case. And I also have a point p1 in that space.

What I want to do is get a random point (newpoint) in that space such that distance(p1, newpoint)<=r, where r represents radius that I already know.

Thank you. Any feedback will be greatly appreciated.