Re:Uniformly Sample Points in a Disk
by eru on Thursday May 26, 2022 @11:41PM
(#31525805)
Btw, the following two are equivalent (in JavaScript syntax):
[ Parent
| on HN ]
Curious, how come? Does it become a statistical thing?
Well, not sure whether you'd call it statistics. It's a mathematical fact from probability theory. And it doesn't matter how often you sample: the distributions themselves are the same.
I came across that one in the other direction, when trying to work out how to make weighted rendezvous hashing work. See https://en.wikipedia.org/wiki/Rendezvous_hashing