RandomBasis

City to discover

Random City Generator

Draw a random city with its country - anywhere in the world, or filter by region.

Runs locally in your browser. Nothing you generate is ever sent to a server.

Press "Generate City" to see a result here.

Region

About this random city generator

Press Generate and a real city comes up with the country it sits in. The list covers well known cities on six continents, weighted towards places people have heard of rather than an exhaustive gazetteer, which is what makes it usable for travel ideas and quizzes.

Filtering by region

The filter splits the world into Europe, Asia, the United States, the rest of the Americas, Africa and Oceania. The United States gets its own group because it is the most common single request: people planning a trip inside one country do not want Reykjavik in the results. Within any group every city has the same chance, so nothing is weighted by population.

Picking a travel destination

Randomising a destination works better than it sounds. Most travel shortlists are built from places you have already seen photographs of, which quietly narrows the world to the same dozen cities. A random draw puts somewhere unexpected in front of you, and the only thing you have to decide is whether it interests you enough to look up flights.

Geography quizzes and lessons

Because each result shows the country, the tool doubles as a flash card. Draw a city, name the country before reading the line underneath, then press again. Set a batch of ten and you have a quiz round without preparing anything.

Common uses

How the randomness works

The list is filtered to the region you chose, then a city is drawn using your browser's cryptographic random source with rejection sampling, so no city is favoured. Batches without repeats use a Fisher-Yates shuffle driven by the same source.

How do I generate a random city?

Press Generate and one city comes up with the country it is in. Press again for another.

Can I limit it to one part of the world?

Yes. The filter narrows the pool to Europe, Asia, the United States, the rest of the Americas, Africa or Oceania.

Can I get a US city only?

Yes. Choose United States and the draw covers the largest and best known American cities only.

Can I draw several cities at once?

Yes. Raise the quantity and, with No repeats on, every city in the batch will be different.

Are these real cities?

Yes, all of them are real, well known cities, shown with the country they belong to. Nothing here is invented.

Is the pick actually random?

Yes. Each city is drawn with your browser's cryptographic random source, so every city in the chosen region has an equal chance.