title: Randomize color by number in javascript
body: <p>I want to randomize a color by a given id (that it can be any number start from 0) in javascript.
  For example:</p>
  
  <pre><code>//number is the id I want to give the function
      function getRandomColor(number) {
      var letters = '0123456789ABCDEF';
      var color = '#';
      var generatedNumber = Math.floor(Math.random() * 16);
      var otherNumber = //something to unite generatedNumber and number(the given id) in a valid number
          for (var i = 0; i &lt; 6; i++ ) {
              color += letters[otherNumber];
          }
          return color;
      }
  </code></pre>
  
  <p>How could I do it?</p>