New york address generator
Here is a New York address generator that can help you generate a random address in New York:
Format: [Street Name] [Street Number], [City], [State], [Zip Code]
Example: 123 Main St, New York, NY 10001
Generate a new address:
- Street Name: [Randomly selected from a list of common street names in New York]
- Street Number: [Randomly generated number between 1 and 999]
- City: [Randomly selected from a list of cities in New York]
- State: NY
- Zip Code: [Randomly generated 5-digit zip code]
Here's the code to generate a new address:
import random
street_names = ["Main", "Broadway", "5th Avenue", "Park Avenue", "Lexington Avenue", "Madison Avenue", "5th Street", "6th Street", "7th Street", "8th Street"]
cities = ["New York", "Brooklyn", "Queens", "Manhattan", "The Bronx", "Staten Island", "Albany", "Buffalo", "Rochester", "Syracuse"]
zip_codes = [str(random.randint(10000, 99999)) for _ in range(1000)]
def generate_address():
street_name = random.choice(street_names)
street_number = random.randint(1, 999)
city = random.choice(cities)
zip_code = random.choice(zip_codes)
return f"{street_number} {street_name} St, {city}, NY {zip_code}"
print(generate_address())
Note: This is a simple script and the generated addresses may not be real or valid. You should not use these addresses for any official or legal purposes.