How to randomly render credit card number values with Python scripts
Here is an Animation Nodes solution:



Which produces:



It works by taking a frame number and using it as a seed to generate 4 random strings of 0-9 characters. Each node has also its own seed, they should differ, so you get 4 different numbers from a single frame number.



Last step is to join the strings together into single one with a space separator in between:





To fool the average viewer the solution above is enough but to be correct more math should be involved which is not hard but would clutter the example. Not every made up credit card number is valid. Each CC company has some rules the numbers should obey and they also differ in length:

Payment card numbers (wiki)

The last digit is also usually a checksum number that can be calculated using Luhn algorithm (Mod 10).

A starting point to get a list of random digits that you can do math on and then convert it to text could look like this: