3tej home
← Writing & Text

What is Random US State Generator?

A Random US State Generator produces a random us state on demand, using a deterministic algorithm or a cryptographically strong random source. Output is generated entirely in your browser so nothing is sent to a server. All 50 states, evenly weighted.

Random US State Generator

Pick a random US state from all 50. Useful for quizzes, travel planning, road-trip routing, and trivia games.

Click Pick a State

About the Random US State Generator

The Random US State Generator picks one of the 50 United States with equal probability on every click, using Math.floor(Math.random() * 50) to index a JavaScript array of the official US Government Publishing Office state list. Picks happen in your browser and are not logged. The tool is useful for trivia rounds, classroom geography prompts, road-trip tiebreakers, and any scenario that needs an unbiased state draw.

The 50-state list has remained stable since Hawaii joined on 21 August 1959, so the random draw represents the same political map for the entire post-1959 era. The picker does not include the District of Columbia or US territories, because Article IV of the US Constitution recognises only the 50 states as members of the union. If you need a wider draw, use the Random Country Generator instead.

How it works

  1. List load. The 50 state names are stored alphabetically as a JavaScript array constant. Alabama is index 0 and Wyoming is index 49, matching the FIPS 5-2 numeric code order (Alabama 01, Wyoming 56, skipping numbers reserved for territories).
  2. Random index. Each click calls Math.random() (a pseudo-random number between 0 and 1 from the browser's xorshift128+ implementation), multiplies by 50, and rounds down. This yields a uniformly distributed integer in the range 0 to 49.
  3. Render. The state at that index is written to the output element. Each state has a 1-in-50 (2 percent) probability per click; draws are independent. Past picks do not influence future picks, so the same state can in principle repeat several clicks in a row (probability of two repeats in a row is 1 in 50, or 2 percent).
state = STATES[Math.floor(Math.random() * 50)]
P(state = s) = 1/50 = 0.02 for every s
E[clicks until every state appears] = 50 x (1 + 1/2 + 1/3 + ... + 1/50) ~= 225 (coupon collector)

Worked example

Three consecutive clicks return (each independently drawn at 2 percent):

Click 1: Montana
Click 2: Florida
Click 3: Vermont

After 10,000 clicks, each state should appear ~200 times (standard deviation ~14 by the binomial variance formula).

Top 10 most-populous US states (key stats)

Population and area data below are 2020 US Census counts plus state-capital reference (capital populations are 2020 city totals).

StatePopulation (2020)CapitalStatehoodArea (sq mi)
California39,538,223Sacramento1850163,696
Texas29,145,505Austin1845268,596
Florida21,538,187Tallahassee184565,758
New York20,201,249Albany178854,555
Pennsylvania13,002,700Harrisburg178746,054
Illinois12,812,508Springfield181857,914
Ohio11,799,448Columbus180344,826
Georgia10,711,908Atlanta178859,425
North Carolina10,439,388Raleigh178953,819
Michigan10,077,331Lansing183796,714

Use cases and limits

  • Trivia and quizzes. Pick a state, then quiz the room on its capital, motto, or year of statehood.
  • Road-trip planning. Use as a tiebreaker when a household cannot agree on the next destination.
  • Classroom prompts. Assign each student a random state to research for a US-geography unit.
  • Fictional settings. Writers can ground a short story in an arbitrarily picked state for variety, then research it.
  • Limit: states only. Washington DC, Puerto Rico, the US Virgin Islands, Guam, American Samoa, and the Northern Mariana Islands are excluded.
  • Limit: uniform weighting only. The picker does not weight by population, area, or any other metric. Wyoming (population ~580,000) is just as likely as California (39.5 million).

Related tools and reading

Frequently asked questions

Are all 50 states equally likely?

Yes. The picker uses Math.floor(Math.random() * 50), giving each state a 2 percent (1 in 50) probability on every click. Population, area, and statehood order do not influence the draw. Over 10,000 picks you should see each state roughly 200 times, with a standard deviation of ~14 by the variance of a binomial distribution.

Does the list include DC, Puerto Rico, or US territories?

No. The list contains the 50 states only, matching how the US Census Bureau publishes state-level data. Washington DC, Puerto Rico, the US Virgin Islands, Guam, American Samoa, and the Northern Mariana Islands are excluded because they are not states under Article IV of the US Constitution. Use the Random Country Generator if you want territories or wider geography.

What is the source of the state list?

The 50 names follow the US Government Publishing Office's standard alphabetical state list, also used by USPS and the FIPS 5-2 numeric code (Alabama = 01 to Wyoming = 56). The list has been stable since Hawaii became the 50th state on 21 August 1959; no state has been added or removed since.

Why use a random state picker?

Common uses include trivia and quiz games (US-geography rounds), road-trip planning (pick where to drive next), classroom prompts (assign each student a state to study), and writing-fiction settings. The picker also serves as a tiebreaker in family vote scenarios when nobody can agree on a destination.

Sources and further reading

  • US Census Bureau (2020) 2020 Census State Population Totals - state population reference data.
  • US Government Publishing Office (2025) Style Manual - canonical state name and abbreviation list.
  • USGS (2024) Areas of the United States - state land and water area totals.
  • National Archives, US Constitution Article IV, Section 3 - the constitutional basis for state vs territory status.

Last updated 2026-05-28.

CT
3Tej Editorial
Free, browser-based tools - no signup, no tracking.