title: How do I generate a random 4 digit number and store it as a variable in python?
body: <p>I'm trying to make a guess the number game in Python, but I'm having trouble. Here is what I have so far:</p>
  
  <pre><code>import random
  number = random.randit(1111,9999)
  print(number)
  </code></pre>
  
  <p>But for some reason I get an <code>error</code> saying something about <code>random cannot be assigned to randit</code>. </p>
  
  <p>Any help please?</p>