Is a credit card generator legal?

Is it Illegal to Use a Credit Card Generator?

It is legal to use a credit card generator. They can not be used to make purchases. The card numbers do not belong to anyone, they are used for testing.