> Sample x and y coordinates from a standard normal distribution. Then project the result on the circle, by normalising the distance.
I wonder if that's uniform...
I expect that you would have more points mapped to the corners.
I wonder if that's uniform...
I expect that you would have more points mapped to the corners.
This says otherwise
var a = Math.max(Math.random(), Math.random());
var b = Math.sqrt(Math.random());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