Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does anyone know where there is c# code or a dll which can generate sample credit card numbers

For an application we are working on I need to generate sample credit card numbers which pass the Luhn algorithm but which are also unique, so we cannot use the sample credit card numbers.

We need to be able to generate around 300 card numbers at a time, and ideally i would be able to do this when generating my input data.

Many Thanks

like image 265
Kev Hunter Avatar asked Jun 08 '09 14:06

Kev Hunter


People also ask

Does anyone know or anybody know?

They have the same meaning. 'Anyone' is more formal and most often used in writing. 'Anybody' is more informal and less likely to be used in writing.

Do anybody have or has?

Although “anybody” is in the third person singular, and hence the correct verb form used with it must contain an “s” (as in “anybody who has read the book …”), “have” in the situation described above is the only “correct” option. Why?

Does anyone or do anyone is correct?

'Anybody' is a third person singular form and takes -s in the present simple tense. That's why the question form requires -s and 'Does anybody' is correct.

Does anyone know meaning?

This form is principally used to emphasize a fact, particularly to contradict a previous assertion, with emphasis on "does": "I don't think anyone knows." You're on the right track, but the choice between the two is determined by meaning, not popularity. "Does anyone know what we're having for dinner?" is a question.


1 Answers

Create random numbers, then calculate the checksum number.

You can find more information at Wikipedia - Luhn, both details about the algorithm and links to different implementations.

like image 108
sisve Avatar answered Sep 22 '22 13:09

sisve