The RandomCreditCardGen Generator randomly generates credit card numbers while maintaining uniqueness by keeping the set of credit card numbers in memory. This Generator uses a cardName and prefix to determine what credit card to generate. Make sure enough memory is allocated when generating large quantities of credit card numbers.


The following parameters may be configured for the RandomCreditCardGen Generator. Items with an asterisk* are required. 

  • cardName*- Defines a constant card name or reference: 
    • americanExpress
    • masterCard
    • visa16
    • visa13
    • discover
    • dinersClub
    • jcb
    • carteBlanche
    • billMeLater
    • voyager
    • switchSolo16
    • switchSolo18
    • switchSolo19

  • cardPrefix* - Defines a credit card prefix:

Example 1: Generate MasterCard Numbers with 51 Card Prefix

This Generator configuration will generate MasterCard numbers with a 51 prefix.

Sample Output