Answers for "python json random number generator"

0

python json random number generator

import json 
from faker import Faker
import random
from random import randint
fake = Faker('en_US')
for _ in range(10):
    my_dict = {    'foo': randint(0, 100),    'bar': {'baz': fake.name(),       'poo': float(random.randrange(155, 389))/100   } }
    print(my_dict)
Posted by: Guest on January-16-2021

Code answers related to "python json random number generator"

Python Answers by Framework

Browse Popular Code Answers by Language