Skip to content

Random Number function

This function is used to generate 16 digit random number. It takes 3 parameters in which third is the optional one. There is an additional field to check the validation of the credit card.

First parameter: Type of card.
Second parameter: Number of random digits.
Third parameter: Number of time user wants that random number separated by comma. isValidccCheck: Select true if you want to check if randomly generated number is valid or not.

We support various type of Credit cards like: visa , master , amex , discover , enroute , jcb , voyager , diners. User has to provide the exact type of the credit card in the function as mentioned here.

Syntax: ${__ccnum(visa,16,1)}

Edit parameter section and click on Form, select functions from the dropdown and select CREDITCARDNUMBERGENERATOR function. Now select the type of card you want from the dropdown and fill the form.

After completing this step it will look as below:

In the above snapshot, random number generated will be stored in a variable defined in Element key.

This function is a generic function and has been build in such a way that it can generate a random number of given number of digits as well.

You need to open CREDITCARDNUMBERGENERATOR function and select any type of card, provide number of digits and count of this random number and leave the forth parameter as blank.

Example: ${__ccnum(visa,10)} ==> 4024007140
Example: ${__ccnum(visa,5,2)} ==> 64356,35231


In the first example above, this function generates a random number of 10 digits.

In the second example above, it generates 2 random numbers of 5 digits.

Back To Top