title: Constraining random HEX # colour generator to a certain range of colours
body: <p>This code gives a random hex colour value every time it is run...</p>
  
  <p>How would I make it spit out say, only greens and blues? Or reds and oranges and yellows?</p>
  
  <pre><code>these = ['0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f']
  
  fff = []
  for z in xrange(6):
      fff.append(these[randint(0,15)])
  ccc = ''.join(fff)
  
  color = '#' + ccc
  </code></pre>