Share your repls and programming experiences

← Back to all posts
Credit Card Generator
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
LoganTheDudeRox
Comments
hotnewtop
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

LoganTheDudeRox

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

LoganTheDudeRox

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

SwomeSwome

Card credits worksing? Money

SwomeSwome

Nitrogen?