Why does this random() distribution look asymmetric?
问题 Edit: This is using Google Chrome 36 I was messing around with html5 canvas, generating points randomly distributed inside a cube and projecting that onto a 2D canvas. Surprisingly, the results don't look very symmetric at all, and I suspect that Javascript's Math.random() is letting me down. Can anyone tell me why this is happening? Is it possible to make it actually look random, without making it slower? var ctx = canvas.getContext('2d'); for (var i = 0; i < 10000000; i++) { var x = Math