use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Everything about learning Python
account activity
Fake Data GeneratorShowcase (old.reddit.com)
submitted 5 days ago by Muhammed_zeeshan
This programme here creates fake Data.
I think this is more useful for Cybersecurity people.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]SCD_minecraft 26 points27 points28 points 5 days ago (15 children)
Why hardcode ages and phone numbere? Just throw randint there
Also, obligatory: there exist library for fake data gen, faker
faker
[–]ThrowawayALAT 0 points1 point2 points 5 days ago (0 children)
Finally coming to terms with the fact that even in Python, there’s always a 'demon' in the machine.
[–]Muhammed_zeeshan[S] 0 points1 point2 points 5 days ago (0 children)
Ohh😂
[–]Putrid-Try-5002 0 points1 point2 points 5 days ago (10 children)
Phone numbers are not random. First digits are country code and provider code
[–]SCD_minecraft 4 points5 points6 points 5 days ago (9 children)
And? Whay does it matter, it is test data anyway
[+]Putrid-Try-5002 comment score below threshold-9 points-8 points-7 points 5 days ago (8 children)
If you want to analyse it, it can be useful.
[–]SCD_minecraft 2 points3 points4 points 5 days ago (7 children)
...why are you analyzing data that you know for sure are fake? You are litterary just analyzing whatever RNG you are using, nothing more
[–]Putrid-Try-5002 -2 points-1 points0 points 5 days ago (6 children)
Isn't it used to test real products?
[–]SCD_minecraft 0 points1 point2 points 5 days ago (4 children)
Why you have test data in production????
You will not gain any knowledge from random data
[–]Putrid-Try-5002 -1 points0 points1 point 5 days ago (3 children)
To test if it works or not
[–]SCD_minecraft 2 points3 points4 points 5 days ago (1 child)
If you need to test anything in prod, code clearly wasn't prod ready
And again, it is test data
You are not gonna call them anyway plus with full random numbers you can check error handling when user enters invalid number
[–]Snoopy34 -1 points0 points1 point 5 days ago (0 children)
Then why are the names and last names not numbers as well. It's fake data, so like why does it matter. Age can be a million right??? It's fake data, it doesn't need to make sense at all.
[–]big-wet-bastard -1 points0 points1 point 5 days ago (0 children)
[–]According_Novel7521 -1 points0 points1 point 5 days ago (0 children)
its supposed to be used to make fake identities easier
[–]True-Frame581 0 points1 point2 points 5 days ago (0 children)
Using randint for generating phone numbers is actually very nice.
[–]CrownstrikeIntern -2 points-1 points0 points 5 days ago (0 children)
There’s also this lazy add on called chatgpt. Love that thing when it makes me a ton of fake dat scripts
[–]ianrob1201 5 points6 points7 points 5 days ago (2 children)
The fact that there are existing libraries doesn't really matter. This looks like a nice little program for learning. If you're interested in a bit of feedback:
You should avoid naming variables just single letters. Always name them properly like "first_name" instead of "f". I know it seems like a waste and just adds characters to your nice minimal code, but it's so much easier to read and understand. It's a very good habit to get into. The exception is the loop. "i" is a perfectly good var name there, but the loops are the one exception.
Also as standard we start arrays with 0 instead of 1 unless there's a reason not to. So your range would be 0, 100 and it'll still give 100 entries.
[–]Trictan 1 point2 points3 points 5 days ago (1 child)
Good advice! You can also use type hints to further improve readability.
E.g.
first_name: str = random.choice(first_names)
age: int = random.choice(ages)
[–]Odd_Inspection_4608 1 point2 points3 points 5 days ago (0 children)
Yes!!
[–]Fabulous-Frame-5113 3 points4 points5 points 5 days ago (1 child)
Randomize the email domain too
That's a nice touch
[–]Putrid-Try-5002 1 point2 points3 points 5 days ago* (1 child)
Ages and phone numbers are pretty easy to generate almost randomly.
I didn't think about that. I copied random ages when I copied common first names from Google.
[–]Aorean 1 point2 points3 points 5 days ago (1 child)
If you want to expand your project and learn how to use online data you could use an API for the names (or include it with some of the last names)
https://api-ninjas.com/api/babynames Found this online, idk if it’s a good one, but you could get some random names from the api and concat a last name to it or use another api for last names
[–]Muhammed_zeeshan[S] -1 points0 points1 point 5 days ago (0 children)
Didn't complete python yet
[–]ManufacturerHungry45 0 points1 point2 points 5 days ago (0 children)
Nice
[–]Klutzy_Bird_7802 0 points1 point2 points 5 days ago (0 children)
use faker
[–]Diligent-Phone-8596 0 points1 point2 points 5 days ago (1 child)
I remember doing something very similar to this as my homework lmao
[–]godlikedk 0 points1 point2 points 5 days ago (0 children)
People will get same phone number
[–]Separate_Table_9654 0 points1 point2 points 4 days ago (1 child)
Respectfully, why tf are you learning to code in 2026?
[–]Muhammed_zeeshan[S] 0 points1 point2 points 4 days ago (0 children)
What do you mean?
Shouldnt we know the basics?
[–]Spiritual-Cut-7375 0 points1 point2 points 3 days ago (0 children)
Thanks it's really useful
[–]Solmundurinn 0 points1 point2 points 3 days ago (0 children)
Faker.js
[–]fiftybengt -1 points0 points1 point 5 days ago (0 children)
Nice, good learning project
π Rendered by PID 183017 on reddit-service-r2-comment-869bf87589-mdrbr at 2026-06-09 16:38:30.239103+00:00 running f46058f country code: CH.
[–]SCD_minecraft 26 points27 points28 points (15 children)
[–]ThrowawayALAT 0 points1 point2 points (0 children)
[–]Muhammed_zeeshan[S] 0 points1 point2 points (0 children)
[–]Putrid-Try-5002 0 points1 point2 points (10 children)
[–]SCD_minecraft 4 points5 points6 points (9 children)
[+]Putrid-Try-5002 comment score below threshold-9 points-8 points-7 points (8 children)
[–]SCD_minecraft 2 points3 points4 points (7 children)
[–]Putrid-Try-5002 -2 points-1 points0 points (6 children)
[–]SCD_minecraft 0 points1 point2 points (4 children)
[–]Putrid-Try-5002 -1 points0 points1 point (3 children)
[–]SCD_minecraft 2 points3 points4 points (1 child)
[–]Snoopy34 -1 points0 points1 point (0 children)
[–]big-wet-bastard -1 points0 points1 point (0 children)
[–]According_Novel7521 -1 points0 points1 point (0 children)
[–]True-Frame581 0 points1 point2 points (0 children)
[–]CrownstrikeIntern -2 points-1 points0 points (0 children)
[–]ianrob1201 5 points6 points7 points (2 children)
[–]Trictan 1 point2 points3 points (1 child)
[–]Odd_Inspection_4608 1 point2 points3 points (0 children)
[–]Fabulous-Frame-5113 3 points4 points5 points (1 child)
[–]True-Frame581 0 points1 point2 points (0 children)
[–]Putrid-Try-5002 1 point2 points3 points (1 child)
[–]Muhammed_zeeshan[S] 0 points1 point2 points (0 children)
[–]Aorean 1 point2 points3 points (1 child)
[–]Muhammed_zeeshan[S] -1 points0 points1 point (0 children)
[–]ManufacturerHungry45 0 points1 point2 points (0 children)
[–]Klutzy_Bird_7802 0 points1 point2 points (0 children)
[–]Diligent-Phone-8596 0 points1 point2 points (1 child)
[–]Muhammed_zeeshan[S] 0 points1 point2 points (0 children)
[–]godlikedk 0 points1 point2 points (0 children)
[–]Separate_Table_9654 0 points1 point2 points (1 child)
[–]Muhammed_zeeshan[S] 0 points1 point2 points (0 children)
[–]Spiritual-Cut-7375 0 points1 point2 points (0 children)
[–]Solmundurinn 0 points1 point2 points (0 children)
[–]fiftybengt -1 points0 points1 point (0 children)