Normalized random position generator I place various divs on screen by adding random x and y positions successively normalized with this function. My question is, how well is it written? Can I improve it? If so, then how?

I am worried not only about the coding style but also performance since I'm using multiple Math.random()s.

   function normalize(n) {
        var x = 0, i = 0;
        while (i &lt; n) {
            x += Math.random();
            i++;
        }
        return (x / n);
    }
With totally zero context of what's going on and I'm not a math person, why "normalize"? What does "normalize" mean? As a front-end developer, normalize.css comes into mind, but it's not related to CSS. So I'm clueless. If you can give a better name, that would be great.

Also, a more compact way to write this is using a for loop

function normalize(n) {
  for(var x = 0, i = 0; i &lt; n; i++){
    x += Math.random();
  }
  return (x / n);
}