title: Simulate rolling dice in Python?
body: <p>first time writing here.. I am writing a "dice rolling" program in python but I am stuck because can't make it to generate each time a random number </p>
  
  <p>this is what i have so far</p>
  
  <pre><code>import random
  
  computer= 0 #Computer Score
  player= 0 #Player Score
  
  print("COP 1000 ")
  print("Let's play a game of Chicken!")
  
  print("Your score so far is", player)
  
  r= random.randint(1,8)
  
  print("Roll or Quit(r or q)")
  </code></pre>
  
  <hr>
  
  <p>now each time that I enter r it will generate the same number over and over again. I just want to change it each time. </p>
  
  <p>I would like it to change the number each time please help
  I asked my professor but this is what he told me.. "I guess you have to figure out" I mean i wish i could and i have gone through my notes over and over again but i don't have anything on how to do it :-/ </p>
  
  <hr>
  
  <p>by the way this is how it show me the program </p>
  
  <pre><code>COP 1000
  Let's play a game of Chicken!
  Your score so far is 0
  Roll or Quit(r or q)r
  
  1
  
  r
  
  1
  
  r
  
  1
  
  r
  
  1
  </code></pre>
  
  <p>I would like to post an image but it won't let me</p>
  
  <hr>
  
  <p><strong>I just want to say THANK YOU to everyone that respond to my question! every single one of your answer was helpful! **thanks to you guys I will have my project done on time! THANK YOU</strong></p>