I am looking for some website/tool that can allow me to generate names, some random id for certain number of people at once. I came across some websites but they only do one at a time and there was no easy way to download those. I am looking to generate for about 10K names and ids (other details will be more than welcome). Is anyone familiar with any such tool that can allow me to generate names and unique ids?
3 Answers
There are also libraries for Python, php, and Perl.
For the Python Faker library, you would do something along the lines of
from faker import Faker
fake = Faker()
for _ in range(0,10000):
print( '{} - {}'.format( fake.uuid4(), fake.name() ) )
You can localize the name generator and you can also seed it for reproducible generations.
-
Please note that faker is being replaced by fake-factory pypi.python.org/pypi/fake-factory , and that there is no uuid4– philshemCommented Mar 16, 2016 at 17:55
-
@philshem: The pypi link already resolves to the new package, see github.com/joke2k/faker/issues/331– SteenCommented Mar 17, 2016 at 8:25
-
@philshem: Also: I see no indication that the uuid4 method should be removed. Either way, it is a oneliner (github.com/joke2k/faker/blob/master/faker/providers/misc/…) and faker allows for your own Provider to wrap the functionality– SteenCommented Mar 17, 2016 at 8:26
-
I think this will generate ids like 1,2,3 and so on.I wanted to generate ids like they normaly are in companies like 5-6 digit ids Commented Mar 17, 2016 at 17:46
-
@JasonDonnald:
uuid4
will generate UUID objects according to RFC 4122. See docs.python.org/3/library/uuid.html#uuid.uuid4– SteenCommented Mar 18, 2016 at 9:05
You can generate that data here. Also it has some other types of random data such as: email, gps data, IBAN...
-
Thanks for the pointer. Feel free to expand more on the description and answer. Commented Mar 17, 2016 at 6:06