Random country generator
Spin the globe. It lands on one of 195 countries, each as likely as the next.
Spin to a country
?
195 countries on 6 continents
- Capital:
Tap Spin or press Space. Drag the globe, tap a country.
Every spin draws the country first, then turns the globe to it. Tap any country on the globe to name it and see its capital.
- Free, no sign-up
- The result is drawn before anything moves
- Nothing leaves your browser
What it does
Tap Spin and the globe turns to a random country, then shows its flag, capital and continent. It picks from 195 countries: the 193 UN member states, the Holy See and Palestine. Your device’s secure random generator draws the country before the globe moves, so every one has the same 1 in 195 chance.
How to use it
- Tap Spin, or press Space. The globe whirls, ticks at every border and lands on a country.
- Pick a continent to spin only within it.
- Turn on No repeats to cross off each country until every one has come up.
- Drag the globe to turn it, and tap any country to see its name and capital.
What people use it for
Geography quizzes
Spin, cover the name, and ask for the capital. Or let the globe stop and name the country before the answer comes up.
Where to travel next
Set the filter to the continents you can reach and start reading about wherever the globe lands.
A country to cook from
Spin for a cuisine and cook one dish from it this week. With No repeats on, no country comes up twice until you have cooked them all.
Reading around the world
Read one book from every country. No repeats remembers the ones you have had, in this browser.
Classroom projects
Give each student a country for a report or a poster. With No repeats on, nobody gets the same one.
Which countries are on the list
195 countries: the 193 member states of the United Nations and its two observer states, the Holy See (Vatican City) and Palestine. It is the list the Globe in the RandALL app uses. Places outside it, such as Taiwan, Kosovo, Western Sahara, Greenland or Puerto Rico, are drawn on the globe, but a spin never lands on them.
Africa has the most countries and South America the fewest. Russia counts as Europe and Türkiye as Asia, as in the list’s source, and Central America and the Caribbean count as North America.
| Continent | Countries | Chance with the filter on | Share of all spins |
|---|---|---|---|
| Africa | 54 | 1 in 54 (1.85%) | 27.7% |
| Asia | 47 | 1 in 47 (2.1%) | 24.1% |
| Europe | 45 | 1 in 45 (2.2%) | 23.1% |
| North America | 23 | 1 in 23 (4.3%) | 11.8% |
| South America | 12 | 1 in 12 (8.3%) | 6.2% |
| Oceania | 14 | 1 in 14 (7.1%) | 7.2% |
| All | 195 | 1 in 195 (0.51%) | 100% |
Outlines: Natural Earth, public domain, simplified for the screen. Country names, capitals and continents: the world-countries dataset by Mohammed Le Doze (github.com/mledoze/countries), ODbL 1.0.
How it picks
The way the app does it: the country first, the spin after.
- The country is drawn first. One number from
crypto.getRandomValuespicks one of the countries the filter allows, each with the same chance. Rejection sampling throws away the few raw numbers that would give some countries an edge. - Then the spin is worked out backwards. The globe winds up, turns east at least once all the way round, and slows down so the country stops in the middle. Then it pushes in until the whole country fills the glass: a big country gets a small zoom, a speck of an island the deepest one, with a ring round it.
- The ticks are only the show. Each border that crosses the sight in the middle ticks. The globe reads the borders as it turns and never steers by them.
- No repeats is a bag. With it on, every country that comes up is set aside until each one in the filter has had its turn. Then they all go back in.
Tested. In 195,000 test draws every country came up equally often (chi-square test), within each continent filter too. With No repeats, every country came up exactly once a round. And for all 195 countries, from random starting points, the spin always ended with the drawn country in the middle of the globe and all of its main body in view.
More random tools
Questions
How many countries are there in the world?
It depends on who is counting. This generator uses 195: the 193 UN member states and the two UN observer states, the Holy See and Palestine. It is the most common answer, and the same list as the RandALL app.
Is the random country generator really random?
Yes. The country is drawn with crypto.getRandomValues before the globe moves, and every country on the list has the same 1 in 195 chance. Where the globe happens to point makes no difference.
Can I get a random country from one continent?
Yes. Pick Africa, Asia, Europe, North America, South America or Oceania next to the globe, and it spins only within that continent. Each one has its own page too, like the random European country generator.
Can the same country come up twice?
Yes, every spin is a fresh draw. Turn on No repeats to cross off each country as it comes up. Once every country in your filter has had a turn, the list starts again.
Why are Taiwan, Kosovo or Greenland not on the list?
The list is the one the RandALL app uses: the UN member states plus the two observer states. Places outside it, such as Taiwan, Kosovo, Western Sahara and territories like Greenland or Puerto Rico, are drawn on the globe, but a spin never picks them.
Are the borders on the globe accurate?
They come from Natural Earth, a public domain world map, simplified to draw fast on a phone. Where a border is disputed, Natural Earth draws the line as it is held on the ground. Tiny countries such as the Vatican get a ring, since their outline is too small to see.
Take it with you
RandALL for iPhone has 25 tools in one app: wheels and teams, real 3D dice, random alarms, Finger Picker and more. It works offline.
Your first 24 hours are free, with every tool. After that, subscribe or buy the lifetime unlock once. Family Sharing included.
Get it on the App StoreiPhone only for now. These web tools are yours to keep using.
