Skip to content

Instantly share code, notes, and snippets.

View rsakamot's full-sized avatar

Ryo Sakamoto rsakamot

  • Japan
View GitHub Profile
@rsakamot
rsakamot / monty.py
Last active May 7, 2016 02:19
monty fall with python
import random
import click
@click.command()
@click.option('--count', default=10000, help='tying count')
@click.option('--doors_number', default=3, help='number of doors')
def simulate(count, doors_number):
doors = ''
for i in range(doors_number):
doors += str(i)