cc
// usage
randBox.cc()
randBox.cc({type: 'Mastercard'})
Generate a random credit card number. This card number will pass the Luhn algorithmย so it looks like a legit card.
randBox.cc();
=> '6304038511073827'
Optionally specify a particular type of card to return:
randBox.cc({type: 'Mastercard'});
=> '5171206237468496'
The type can be specified by the long name, or by the short name:
randBox.cc({type: 'mc'});
=> '5103820202214116'
The types are enumerated below.
Last updated on: