title: How to use the Random Function in a if statement, in Python 3?
body: <p>Here is my code for a simple coin toss program, I am new to python.</p>
  
  <p>I am not getting any Errors, but the program will not print my "if" statements, it skips straight from input too input.</p>
  
  <p>I am sure there is more intuitve ways to generate a coin toss program, this was just the idea I had.</p>
  
  <p>Any thoughts? </p>
  
  <pre><code>import random
  print('--HEADS or TAILS--')
  print('Welcome Players!')
  print('[H=_Heads][T=_Tails]')
  print('Please ENTER {H_or_T}')
  
  input("Heads or Tails:")
  rand = (random.randint(1,2))
  
  if rand=='1':
      print("Heads Wins!")
  elif rand=='2':
      print("Tails Wins!")
  
  input("Press ENTER to Exit")
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/pVOQg.png" rel="nofollow noreferrer">Here is a screenshot of my code.</a></p>