3 ms·
Works fine as long as you generate x,y,z randomly and not their squares. Same process but minor tweak. https://jsfiddle.net/w8zLvsy2/ https://jsfiddle.net/w8z
by goldenkey 8y ago
Works fine as long as you generate x,y,z randomly and not their squares.
Same process but minor tweak.
https://jsfiddle.net/w8zLvsy2/ https://jsfiddle.net/w8zLvsy2/
- machiavelli1024 8y agoNope. You still have clustering on the sides. A proper uniform distribution would produce the same grey shade all over the circle, like this: https://jsfiddle.net/tz85wnxy/86/ https://jsfiddle.net/tz85wnxy/86/ Yours have darker areas on the sides.
- cvoss 8y agoThis approach is still incorrect, and the bias toward the set of 4 points S = {(1,0),(-1,0),(0,1),(0,-1)} can be seen in the diagram. There is no way to break out of this bias by flipping or reordering coordinates because those two operations preserve the symmetries of S: - if you flip the x-coord of a point near S, e.g. (-.9,0), you still get a point near S, e.g. (.9,0) - if you swap the x-coord and y-coord of a point near S you still get a point near S. - etc.