Created
September 6, 2022 02:00
-
-
Save syedjafer/3bdef700d77afda65565902eae8b9fa8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import uuid | |
import random | |
from faker import Faker | |
fake = Faker() | |
def get_data(): | |
data = list() | |
for _ in range(10): | |
data.append({'userId': uuid.uuid4(), 'id': random.randrange(1, 100), 'name': fake.name(), 'address': fake.address()}) | |
return data | |
def get_schd_time(): | |
return random.randrange(5,20) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment