title: Generate random 6-digit ID in Python
body: <p>I have a database of questions. I want to mark them with <strong>6-digit ID</strong>.</p>
  
  <p>I have tried using <code>uuid.uuid1()</code> with <code>int()</code> but it generates a 128-bit integer and that is too long.</p>
  
  <p>I have also tried using <code>random()</code> but that random integer cannot have digit '0' as first digit. </p>
  
  <p>The ID:</p>
  
  <ul>
  <li>Can start with digit '0'.</li>
  <li>There is a space between the first 3 digits and the last 3 digits.</li>
  <li>Must be unique (random ID).</li>
  </ul>
  
  <p>For example, question 1 can be marked <strong>050 124</strong></p>
  
  <p>How can I create random ID like that? </p>
  
  <p>Actually, the space between the first and last 3 digits is not important. So, if it's difficult, just show me how to create a random 6-digit number (can start with '0')</p>