title: Is this an elegant solution?
body: <p>The problem is not complicated. Log randomly a name from an array of names.</p>
  
  <p>My solution comes as this. </p>
  
  <pre><code>var names = [ 'nick', 'rock', 'danieel' ];
  function randPicker(names) {
      var randNum = Math.floor((Math.random() * 10));
      var name = randNum &lt;= (names.length - 1) ? console.log(names[randNum]) : randPicker(arguments[0]); 
  };
  </code></pre>
  
  <p>It seems to me that this code is not that beautiful, because im quite sure that there are better ways that perform much faster. Is that true?</p>