Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

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)
Comment

PREVIOUS NEXT
Code Example
Python :: numpy copy array 
Python :: Range python iterate by 2 
Python :: how to select rows with specific values in pandas 
Python :: python powerpoint 
Python :: get dictionary values python 
Python :: python terminal game 
Python :: screen.onkey python 
Python :: how to terminate subprocess.call in python 
Python :: remove leading and lagging spaces dataframe python 
Python :: regex name extract 
Python :: add two column values of a datframe into one 
Python :: remove duplicates from tuple python 
Python :: insert column in a dataframe 
Python :: how to make python open an application on mac 
Python :: sendgrid send email to multiple recipients python 
Python :: mse python 
Python :: python get dictionary keys as list 
Python :: search for a word in pdf using python 
Python :: cumulative frequency for python dataframe 
Python :: get absolute url 
Python :: python empty constructor 
Python :: numpy diff 
Python :: python generate pdf from template 
Python :: check if list elememnt in dataframe column 
Python :: list element swapping python 
Python :: django get latest object 
Python :: python list object ids 
Python :: length of list python 
Python :: beautifulsoup check if text exists 
Python :: print environment variables windows python 
ADD CONTENT
Topic
Content
Source link
Name
4+7 =