User Rating 0.0 โ˜…โ˜…โ˜…โ˜…โ˜…
Total Usage 0 times
1 โ€“ 56
Presets:
Click Generate or choose a preset
Is this tool helpful?

Your feedback helps us improve.

โ˜… โ˜… โ˜… โ˜… โ˜…

About

Selecting a random US state appears trivial until you need verifiable uniformity across 50 states, 1 district, and 5 territories. Naive Math.random implementations in most browsers use xorshift128+ generators that can exhibit short-period correlations when sampled rapidly. This tool uses the Web Crypto API (crypto.getRandomValues) to source entropy from the operating system's CSPRNG, producing selections with 2128 period minimum. Each draw is independent with probability 1n per entity when uniformity mode is active. The tool assumes equal weighting. It does not account for population-proportional sampling. If you need weighted selection by population or area, adjust interpretation accordingly.

random state generator US states random picker state randomizer geography generator random state picker

Formulas

The generator uses cryptographically secure random index selection. For a pool of n entities, each entity has uniform selection probability:

P(statei) = 1n

where n = 50 (states only), 51 (with DC), or 56 (with all territories). The random index j is computed via rejection sampling on a 32-bit unsigned integer from crypto.getRandomValues:

j = r mod n where r < n โ‹… floor(232n)

Rejection sampling eliminates modulo bias. For unique multi-selection, the Fisher-Yates (Knuth) shuffle is applied to produce k distinct items from the pool without replacement:

for i = n โˆ’ 1 down to n โˆ’ k: swap arr[i] with arr[rand(0, i)]

where k is the requested count. The number of possible permutations is n!(n โˆ’ k)!, ensuring each combination is equally likely.

Reference Data

StateAbbr.CapitalRegionStatehoodPop. (est.)Area miยฒNickname
AlabamaALMontgomerySouth18195,108,46852,420Yellowhammer State
AlaskaAKJuneauWest1959733,536665,384The Last Frontier
ArizonaAZPhoenixWest19127,303,398113,990Grand Canyon State
ArkansasARLittle RockSouth18363,067,73253,179Natural State
CaliforniaCASacramentoWest185038,965,193163,696Golden State
ColoradoCODenverWest18765,877,610104,094Centennial State
ConnecticutCTHartfordNortheast17883,617,1765,543Constitution State
DelawareDEDoverSouth17871,031,8902,489First State
FloridaFLTallahasseeSouth184522,610,72665,758Sunshine State
GeorgiaGAAtlantaSouth178811,029,22759,425Peach State
HawaiiHIHonoluluWest19591,435,13810,932Aloha State
IdahoIDBoiseWest18901,964,72683,569Gem State
IllinoisILSpringfieldMidwest181812,549,68957,914Prairie State
IndianaINIndianapolisMidwest18166,862,19936,420Hoosier State
IowaIADes MoinesMidwest18463,207,00456,273Hawkeye State
KansasKSTopekaMidwest18612,940,54682,278Sunflower State
KentuckyKYFrankfortSouth17924,526,15440,408Bluegrass State
LouisianaLABaton RougeSouth18124,573,74952,378Pelican State
MaineMEAugustaNortheast18201,395,72235,380Pine Tree State
MarylandMDAnnapolisSouth17886,180,25312,406Old Line State
MassachusettsMABostonNortheast17887,001,39910,554Bay State
MichiganMILansingMidwest183710,037,26196,714Great Lakes State
MinnesotaMNSaint PaulMidwest18585,737,91586,936North Star State
MississippiMSJacksonSouth18172,939,69048,432Magnolia State
MissouriMOJefferson CityMidwest18216,196,15669,707Show-Me State
MontanaMTHelenaWest18891,132,812147,040Treasure State
NebraskaNELincolnMidwest18671,978,37977,348Cornhusker State
NevadaNVCarson CityWest18643,194,176110,572Silver State
New HampshireNHConcordNortheast17881,402,0549,349Granite State
New JerseyNJTrentonNortheast17879,290,8418,723Garden State
New MexicoNMSanta FeWest19122,114,371121,590Land of Enchantment
New YorkNYAlbanyNortheast178819,571,21654,555Empire State
North CarolinaNCRaleighSouth178910,835,49153,819Tar Heel State
North DakotaNDBismarckMidwest1889783,92670,698Peace Garden State
OhioOHColumbusMidwest180311,780,01744,826Buckeye State
OklahomaOKOklahoma CitySouth19074,019,80069,899Sooner State
OregonORSalemWest18594,233,35898,379Beaver State
PennsylvaniaPAHarrisburgNortheast178712,961,68346,054Keystone State
Rhode IslandRIProvidenceNortheast17901,095,9621,545Ocean State
South CarolinaSCColumbiaSouth17885,373,55532,020Palmetto State
South DakotaSDPierreMidwest1889919,31877,116Mount Rushmore State
TennesseeTNNashvilleSouth17967,126,48942,144Volunteer State
TexasTXAustinSouth184530,503,301268,596Lone Star State
UtahUTSalt Lake CityWest18963,417,73484,897Beehive State
VermontVTMontpelierNortheast1791647,4649,616Green Mountain State
VirginiaVARichmondSouth17888,642,27442,775Old Dominion
WashingtonWAOlympiaWest18897,812,88071,298Evergreen State
West VirginiaWVCharlestonSouth18631,770,07124,230Mountain State
WisconsinWIMadisonMidwest18485,910,95565,496Badger State
WyomingWYCheyenneWest1890584,05797,813Equality State

Frequently Asked Questions

The tool uses the Web Crypto API (crypto.getRandomValues) which sources entropy from the operating system's cryptographic random number generator (CSPRNG). On modern systems this draws from hardware entropy pools (CPU RDRAND/RDSEED, interrupt timing, disk I/O jitter). This is the same entropy source used for TLS key generation. It is not deterministic pseudorandomness from a seeded PRNG.
When you compute r mod n from a uniform 32-bit integer, if 232 is not evenly divisible by n, the lower indices get slightly higher probability. For n = 50, the bias is approximately 0.0000012% per draw. Rejection sampling discards values in the biased tail range (r โ‰ฅ n โ‹… floor(232 รท n)) and re-samples, guaranteeing perfect uniformity.
By default, the "No Duplicates" option is enabled. This uses a partial Fisher-Yates shuffle: instead of picking independently (which allows collisions with probability governed by the birthday paradox), the algorithm shuffles the pool in-place and returns the first k elements. Each permutation is equally likely. You can disable this to allow duplicates, which then uses independent draws.
With n = 50 states, the probability of seeing any specific state in a single draw is 2%. Over 10 independent sessions generating 1 state each, the probability of seeing at least one repeat is 1 โˆ’ 50!40! โ‹… 5010 โ‰ˆ 63%. This is the birthday paradox applied to states. Clustering is statistically expected and does not indicate broken randomness.
Yes. When a region filter is applied, the pool is reduced to only states in that region. Selection uniformity is maintained within the filtered pool. For example, the Northeast has 9 states, so each has probability 19 โ‰ˆ 11.1% per draw. The Fisher-Yates shuffle operates identically on any pool size.
The dataset includes 50 states, the District of Columbia (DC), and 5 inhabited territories: Puerto Rico (PR), Guam (GU), U.S. Virgin Islands (VI), American Samoa (AS), and Northern Mariana Islands (MP). Territories are excluded by default. They lack statehood dates and have non-voting congressional representation. Including them changes the pool size and therefore alters individual selection probabilities.