title: Select random winner with percentages
body: <p>I would want to select a random winner from about 2 - 10 players.
  Every player have precent chance to win. Someone have 50% and someone 10%.  </p>
  
  <p>Let's say we have 2 players. One player have 20% and other have 80%. How do I select winner between these two?.  </p>
  
  <p>Players are in array</p>
  
  <pre><code>var players = {
      player1: {
          chance: 20 //%
      }
      player2: {
          chance: 80 //%
      }
  }
  
  //Select winner from json
  </code></pre>