title: Python 3: How to get a random 4 digit number?
body: <p>I need help to get a random 4 digit long number with no repeated digits inside the number so I have </p>
  
  <pre><code>import random
  numbers = random.sample(range(10), 4)
  </code></pre>
  
  <p>Would this be the best way to go at it?
  I also need help with making sure the first digit is not 0, how could I do that? Cheers for the input</p>