title: Faker.Credit_card_number function to generate cards from specific providers
body: <p>I am using the below function to generate some random Credit card numbers of Amex/Mastercard/Visa &amp; Discover and writing it to a csv file based on a record_counter.</p>
  <p>If my record_counter is set to 25, I see some of the records comes out as 0 and rest with Credit card numbers. Is there a way to generate a credit card number always despite the record counter value. ( If record_counter is 100, there needs to be 100 credit card numbers generated ) I know this may not be the optimized way of implementation, but I am just beginning on Python,</p>
  <pre><code>def PanGeneratorFaker():
  fake = Faker()
  
  k = fake.credit_card_number()
  if (str(k).startswith(&quot;34&quot;) or str(k).startswith(&quot;37&quot;)) and (len(k) == 15):
      return k
  elif (str(k).startswith(&quot;6&quot;) or str(k).startswith(&quot;4&quot;) or str(k).startswith(&quot;5&quot;)) and ((len(k) == 16) or (len(k) == 19)):
      return k       
  </code></pre>