{"id":17166699,"url":"https://github.com/willf/sitting-in-your-seat-plane-simulation","last_synced_at":"2026-07-28T13:31:27.355Z","repository":{"id":66569849,"uuid":"52131489","full_name":"willf/sitting-in-your-seat-plane-simulation","owner":"willf","description":"Simulation of 538 \"Will Someone Be Sitting In Your Seat On The Plane?\" riddle","archived":false,"fork":false,"pushed_at":"2023-08-23T15:57:32.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-13T12:12:43.030Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/willf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-02-20T02:00:42.000Z","updated_at":"2023-08-23T15:57:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"b9542e0b-9ee2-434c-80ac-01f651832842","html_url":"https://github.com/willf/sitting-in-your-seat-plane-simulation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/willf/sitting-in-your-seat-plane-simulation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willf%2Fsitting-in-your-seat-plane-simulation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willf%2Fsitting-in-your-seat-plane-simulation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willf%2Fsitting-in-your-seat-plane-simulation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willf%2Fsitting-in-your-seat-plane-simulation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willf","download_url":"https://codeload.github.com/willf/sitting-in-your-seat-plane-simulation/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willf%2Fsitting-in-your-seat-plane-simulation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279014764,"owners_count":26085593,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T23:06:26.626Z","updated_at":"2025-10-13T11:17:30.589Z","avatar_url":"https://github.com/willf.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sitting-in-your-seat-plane-simulation\nSimulation of 538 \"[Will Someone Be Sitting In Your Seat On The Plane?](http://fivethirtyeight.com/features/will-someone-be-sitting-in-your-seat-on-the-plane/)\" riddle\n\nThe Riddle:\n\nThere’s an airplane with 100 seats, and there are 100 ticketed passengers each with an assigned seat.\nThey line up to board in some random order. However, the first person to board is the worst person alive,\nand just sits in a random seat, without even looking at his boarding pass. Each subsequent passenger\nsits in his or her own assigned seat if it’s empty, but sits in a random open seat\nif the assigned seat is occupied. What is the probability that you,\nthe hundredth passenger to board, finds your seat unoccupied?\n\nBased on lots of runs, it's around 50%.\n\nThis is invariant in the number of passengers (for n \u003e 1).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillf%2Fsitting-in-your-seat-plane-simulation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillf%2Fsitting-in-your-seat-plane-simulation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillf%2Fsitting-in-your-seat-plane-simulation/lists"}