Skip to content
Sign UpLog In
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
8

Credit Card Generator

LoganTheDudeRox
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!

2 years ago
You are viewing a single comment. View All
3
maxina
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

2 years ago
1
LoganTheDudeRox
LoganTheDudeRox

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

2 years ago
1
LoganTheDudeRox
LoganTheDudeRox

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

2 years ago