Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Let S = {S_i} be any set of cubes that covers a d-sphere. Choose a point in a cube and an integer i in [0, |S|). Now you have a random point in S. With a judicious choice of S you obtain a uniformly random point in the unit sphere with high probability.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: