title: How to generate random numbers in range from INPUT?
body: <p>This is a question close to some others I have found but they don't help me so I'm asking specifically for me and my purpose this time.</p>
  <p>I'm coding for a bot that is supposed to ask the user for max and min in a range, then generating ten random numbers within that range. When validating I'm told both <code>random</code> and <code>i</code> are unused variables. I don't really get why. I believed <code>random.randint</code> was supposed to be a built-in function and as far as <code>i</code> is concerned I really don't know what to believe. This is what I've got so far.</p>
  <pre><code>def RandomNumbers():
      &quot;&quot;&quot;
      Asking the user for a min and max, then printing ten random numbers between min and max.
      &quot;&quot;&quot;
      print(&quot;Give me two numbers, a min and a max&quot;)
      a = input(&quot;Select min. &quot;)
      b = input(&quot;Select max. &quot;)
  
  
      for i in range(10):
          number = random.randint(a, b)
      print(str(number)+ str(&quot;,&quot;), end=&quot;&quot;)
  </code></pre>
  <p>I'll be very happy for every piece of advice I can get to complete my task. Thank you in advance!</p>