title: Get count of occurrence of integers in a random number selection in a range N times
body: <p>When writing this code I found myself doing a lot of repetitive stuff and was wondering if there is an easier or simpler or shorter way to do a repetitive task such as this. </p>
  
  <p>Here is the relevant code:</p>
  
  <pre><code> from random import randint
      RandomNumber = Zeroes = Ones = Twos = Threes = Fours = Fives = Sixes = i = 0
  
      while i &lt; 1000000:
          RandomNumber = (randint(0,6))
          if RandomNumber == 0:
              Zeroes = Zeroes + 1
          if RandomNumber == 1:
              Ones = Ones + 1
          if RandomNumber == 2:
              Twos = Twos + 1
          if RandomNumber == 3:
              Threes = Threes + 1
          if RandomNumber == 4:
              Fours = Fours + 1
          if RandomNumber == 5:
              Fives = Fives + 1
          if RandomNumber == 6:
              Sixes = Sixes + 1
  
          i = i + 1
  </code></pre>