Skip to content

Instantly share code, notes, and snippets.

View rgobbel's full-sized avatar

Randy Gobbel rgobbel

  • San Francisco, CA
View GitHub Profile
@rgobbel
rgobbel / montyhall.py
Last active March 14, 2023 00:15
"Monty Hall" problem, generalized to any number of doors, with the host choosing a variable-sized subset of the doors that were not chosen by the player
#!/usr/bin/env python3
## Generalized Monty Hall problem for N doors, with the host opening some subset
## of the doors that were not choson.
import random
import argparse
def main():