You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
732 B
732 B
cc
// usage
chance.cc()
chance.cc({type: 'Mastercard'})
Generate a random credit card number. This card number will pass the Luhn algorithm so it looks like a legit card.
chance.cc();
=> '6304038511073827'
Optionally specify a particular type of card to return:
chance.cc({type: 'Mastercard'});
=> '5171206237468496'
The type can be specified by the long name, or by the short name:
chance.cc({type: 'mc'});
=> '5103820202214116'
The types are enumerated below.