Skip to content
← Back to Community
Credit Card Generator
Profile icon
LoganTheDudeRox

I recently learned about random number and choice generators in PY, so I just wanted to try a little credit card generator! Probably none of these work, as this is just a fun, simple project!

Voters
Profile icon
seragibrahim
Profile icon
Atharv-GamingGa
Profile icon
LoganTheDudeRox
Comments
hotnewtop
Profile icon
maxina

random.choice() picks a random string from an array from what I remember. You can use the random.randint(start, end) to generate a random number in a range of numbers. This webpage has a list of all of the random functions:
https://www.w3schools.com/python/module_random.asp

Profile icon
LoganTheDudeRox

@maxina Thanks for the feedback! Next time I'm gonna use integers instead of strings.

Profile icon
LoganTheDudeRox

@maxina I also did it that way because you can't mix together a string and an integer.

Profile icon
SwomeSwome

Card credits worksing? Money

Profile icon
SwomeSwome

Nitrogen?